<!DOCTYPE html>
<!-- saved from url=(0048)https://drafts.csswg.org/css-syntax-3/#placement -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
  <title>CSS Syntax Module Level 3</title>
  <meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
  <meta content="testing" name="csswg-work-status">
  <meta content="ED" name="w3c-status">
  <meta content="This module describes, in general terms, the basic structure and syntax of CSS stylesheets. It defines, in detail, the syntax and parsing of CSS - how to turn a stream of bytes into a meaningful stylesheet." name="abstract">
  <link href="./CSS Syntax Module Level 3_files/default.css" rel="stylesheet" type="text/css">
  <link href="https://drafts.csswg.org/csslogo.ico" rel="shortcut icon" type="image/x-icon">
<style>
  body {
    background-image: url("https://www.w3.org/StyleSheets/TR/logo-ED");
  };
  </style>
  <meta content="Bikeshed 1.0.0" name="generator">
<script defer="" src="./CSS Syntax Module Level 3_files/annotate.js.download" type="text/javascript"></script>
<style>
			#serialization-tables th { font-size: 80%; line-height: normal }
		</style>
<style>/* style-md-lists */

            /* This is a weird hack for me not yet following the commonmark spec
               regarding paragraph and lists. */
            [data-md] > :first-child {
                margin-top: 0;
            }
            [data-md] > :last-child {
                margin-bottom: 0;
            }</style>
<style>/* style-selflinks */

            .heading, .issue, .note, .example, li, dt {
                position: relative;
            }
            a.self-link {
                position: absolute;
                top: 0;
                left: calc(-1 * (3.5rem - 26px));
                width: calc(3.5rem - 26px);
                height: 2em;
                text-align: center;
                border: none;
                transition: opacity .2s;
                opacity: .5;
            }
            a.self-link:hover {
                opacity: 1;
            }
            .heading > a.self-link {
                font-size: 83%;
            }
            li > a.self-link {
                left: calc(-1 * (3.5rem - 26px) - 2em);
            }
            dfn > a.self-link {
                top: auto;
                left: auto;
                opacity: 0;
                width: 1.5em;
                height: 1.5em;
                background: gray;
                color: white;
                font-style: normal;
                transition: opacity .2s, background-color .2s, color .2s;
            }
            dfn:hover > a.self-link {
                opacity: 1;
            }
            dfn > a.self-link:hover {
                color: black;
            }

            a.self-link::before            { content: "¶"; }
            .heading > a.self-link::before { content: "§"; }
            dfn > a.self-link::before      { content: "#"; }</style>
<style>/* style-counters */

            body {
                counter-reset: example figure issue;
            }
            .issue {
                counter-increment: issue;
            }
            .issue:not(.no-marker)::before {
                content: "Issue " counter(issue);
            }

            .example {
                counter-increment: example;
            }
            .example:not(.no-marker)::before {
                content: "Example " counter(example);
            }
            .invalid.example:not(.no-marker)::before,
            .illegal.example:not(.no-marker)::before {
                content: "Invalid Example" counter(example);
            }

            figcaption {
                counter-increment: figure;
            }
            figcaption:not(.no-marker)::before {
                content: "Figure " counter(figure) " ";
            }</style>
<style>/* style-autolinks */

            .css.css, .property.property, .descriptor.descriptor {
                color: #005a9c;
                font-size: inherit;
                font-family: inherit;
            }
            .css::before, .property::before, .descriptor::before {
                content: "‘";
            }
            .css::after, .property::after, .descriptor::after {
                content: "’";
            }
            .property, .descriptor {
                /* Don't wrap property and descriptor names */
                white-space: nowrap;
            }
            .type { /* CSS value <type> */
                font-style: italic;
            }
            pre .property::before, pre .property::after {
                content: "";
            }
            [data-link-type="property"]::before,
            [data-link-type="propdesc"]::before,
            [data-link-type="descriptor"]::before,
            [data-link-type="value"]::before,
            [data-link-type="function"]::before,
            [data-link-type="at-rule"]::before,
            [data-link-type="selector"]::before,
            [data-link-type="maybe"]::before {
                content: "‘";
            }
            [data-link-type="property"]::after,
            [data-link-type="propdesc"]::after,
            [data-link-type="descriptor"]::after,
            [data-link-type="value"]::after,
            [data-link-type="function"]::after,
            [data-link-type="at-rule"]::after,
            [data-link-type="selector"]::after,
            [data-link-type="maybe"]::after {
                content: "’";
            }

            [data-link-type].production::before,
            [data-link-type].production::after,
            .prod [data-link-type]::before,
            .prod [data-link-type]::after {
                content: "";
            }

            [data-link-type=element],
            [data-link-type=element-attr] {
                font-family: Menlo, Consolas, "DejaVu Sans Mono", monospace;
                font-size: .9em;
            }
            [data-link-type=element]::before { content: "<" }
            [data-link-type=element]::after  { content: ">" }

            [data-link-type=biblio] {
                white-space: pre;
            }</style>
<style>/* style-dfn-panel */

        .dfn-panel {
            position: absolute;
            z-index: 35;
            height: auto;
            width: -webkit-fit-content;
            width: fit-content;
            max-width: 300px;
            max-height: 500px;
            overflow: auto;
            padding: 0.5em 0.75em;
            font: small Helvetica Neue, sans-serif, Droid Sans Fallback;
            background: #DDDDDD;
            color: black;
            border: outset 0.2em;
        }
        .dfn-panel:not(.on) { display: none; }
        .dfn-panel * { margin: 0; padding: 0; text-indent: 0; }
        .dfn-panel > b { display: block; }
        .dfn-panel a { color: black; }
        .dfn-panel a:not(:hover) { text-decoration: none !important; border-bottom: none !important; }
        .dfn-panel > b + b { margin-top: 0.25em; }
        .dfn-panel ul { padding: 0; }
        .dfn-panel li { list-style: inside; }
        .dfn-panel.activated {
            display: inline-block;
            position: fixed;
            left: .5em;
            bottom: 2em;
            margin: 0 auto;
            max-width: calc(100vw - 1.5em - .4em - .5em);
            max-height: 30vh;
        }

        .dfn-paneled { cursor: pointer; }
        </style>
<style>/* style-railroad */
svg.railroad-diagram{background-color:hsl(30,20%,95%);}svg.railroad-diagram path{stroke-width:3;stroke:black;fill:rgba(0,0,0,0);}svg.railroad-diagram text{font:bold 14px monospace;text-anchor:middle;}svg.railroad-diagram text.label{text-anchor:start;}svg.railroad-diagram text.comment{font:italic 12px monospace;}svg.railroad-diagram rect{stroke-width:3;stroke:black;fill:hsl(120,100%,90%);}</style>
 <script type="text/javascript"><!--
Stream=function(uri,params,callback){this.xhr=new XMLHttpRequest();this.callback=callback;this.persist=false;if(!params){params={};}var loginKey=system.getCookie('loginkey');if(loginKey){params['loginkey']=loginKey;}params['stream']=++this.gStreamId;this.uri=(params ?uri+'?'+system.encodeParams(params):uri);var stream=this;this.xhr.onreadystatechange=function(){if((200==stream.xhr.status)&&((3==stream.xhr.readyState)||(4==stream.xhr.readyState))){var message=stream.xhr.responseText.substring(stream.processed);if(-1!=message.indexOf("\uEE00\uEEFF\uEE00")){var messages=message.split("\uEE00\uEEFF\uEE00");for(var index=0;index<(messages.length-1);index++){message=messages[index];stream.processed+=(message.length+3);try{response=JSON.parse(message.trim());}catch(err){console.log("stream parse error: "+message.trim());console.log(err);continue;}stream.callback(response.message,response.data);}}if(4==stream.xhr.readyState){if(stream.persist&&(!stream.closed)){setTimeout(function(){if(!stream.closed){stream.connect();}},10);}stream.closed=true;}}};this.connect();return this;};Stream.prototype={gStreamId:Math.floor(Math.random()*0xFFFFFFFF),connect:function(){this.processed=0;this.closed=false;this.xhr.open('GET',this.uri,true);this.xhr.setRequestHeader('Accept','application/json');this.xhr.send();},close:function(){this.closed=true;if((4!=this.xhr.readyState)&&(0!=this.xhr.readyState)){this.xhr.abort();}},setTimeout:function(callback,timeoutMS){this.xhr.timeout=timeoutMS;var stream=this;this.xhr.ontimeout=function(){stream.closed=true;callback(stream);};},};
// --></script><script type="text/javascript"><!--
var gDraftAPIURI="https:\/\/drafts.csswg.org\/api\/drafts\/";var gCookiePrefix="drafts_";var gRepo="csswg";var gDate=false;var gBranch=null;var gHead=null;var gRepoPath="css-syntax\/Overview.bs";if(!Array.indexOf){Array.prototype.indexOf=function(obj){for(var index=0;index<this.length;index++){if(this[index]==obj){return index;}}return-1;}}if(!Date.now){Date.now=function(){return new Date().getTime();}}try{if(1!=Node.ELEMENT_NODE){throw true;}}catch(exc){var Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3};}var system={getCookie:function(name){var cookies=document.cookie.split(';');name+='=';var prefixedName=gCookiePrefix+name;for(var index=0;index<cookies.length;index++){cookie=cookies[index].trim();if(prefixedName==cookie.substring(0,prefixedName.length)){return unescape(cookie.substring(prefixedName.length));}if(name==cookie.substring(0,name.length)){return unescape(cookie.substring(name.length));}}return null;},encodeParams:function(params,arrayName){var paramString='';for(param in params){if(params.hasOwnProperty(param)){if(paramString){paramString+='&';}var name=param;if(arrayName){name=arrayName+'['+param+']';}if(Array.isArray(params[param])){for(var index=0;index<params[param].length;index++){paramString+=name+'[]='+params[param][index];}}else if('object'==typeof(params[param])){paramString+=this.encodeParams(params[param],param);}else if('boolean'==typeof(params[param])){paramString+=name+'='+(params[param]+0);}else{paramString+=name+'='+encodeURIComponent(params[param]);}}}return paramString;},addLoadEvent:function(onLoad){try{var oldOnLoad=window.onload;if('function'!=typeof(window.onload)){window.onload=onLoad;}else{window.onload=function(){if(oldOnLoad){oldOnLoad();}onLoad();}}}catch(err){}}};var updateCount=0;var maxStreamListenTime=5*60*1000;var minStreamListenTime=10*1000;var streamInterval=20*60*1000;var streamListenTime=maxStreamListenTime;var streamStartTime=0;function updateBikeshed(message,data){var bikeshedIcon=document.getElementById('bikeshed');if(bikeshedIcon){bikeshedIcon.setAttribute('class',data.status);switch(data.status){case'pending':case'generating':bikeshedIcon.setAttribute('title','Bikeshed Pending');break;case'success':bikeshedIcon.setAttribute('title','Bikeshed Succeeded');break;case'warning':bikeshedIcon.setAttribute('title','Bikeshed Warnings');break;case'fatal':bikeshedIcon.setAttribute('title','Bikeshed Errors');break;case'previous':case'error':bikeshedIcon.setAttribute('title','Bikeshed Failed');break;}}updateCount++;if((1<updateCount)||(gDate&&(data.date!=gDate))){streamListenTime=maxStreamListenTime;gUpdateStream.setTimeout(streamTimeout,(Date.now()-streamStartTime)+streamListenTime);if((gDate<data.date)&&(('committed'==data.status)||('success'==data.status)||('warning'==data.status))){window.location.reload();}}gDate=data.date;}function streamTimeout(stream){streamListenTime=minStreamListenTime;setTimeout(function(){startStream();},streamInterval);}function startStream(){updateCount=0;streamStartTime=Date.now();gUpdateStream=new Stream(gDraftAPIURI,{'repo':gRepo,'date':gDate,'branch':gBranch,'head':gHead,'path':gRepoPath},updateBikeshed);gUpdateStream.persist=true;gUpdateStream.setTimeout(streamTimeout,streamListenTime);}function setupPage(){var bikeshedIcon=document.getElementById('bikeshed');if(bikeshedIcon){bikeshedIcon.onclick=function(domEvent){if(domEvent.shiftKey){var url=bikeshedIcon.getAttribute('href').replace('/bikeshed/','/static/')+window.location.hash;window.location.href=url;if(domEvent){(domEvent.preventDefault)?domEvent.preventDefault():domEvent.returnValue=false;}}};}startStream();}system.addLoadEvent(setupPage);
// --></script><style type="text/css"><!-- a#generator { width: 32px; height: 32px; display: block; position: fixed; right: 0; top: 0;
 border-bottom-left-radius: 5px; background: #f4f4f4; box-shadow: 2px 0px 3px #444;
 background-image: linear-gradient(to bottom, #eee, #fff 15%, #ededed 80%, #e0e0e0);
}
a#generator:focus { outline: none;}
a#generator svg { position: absolute; right: 3px; top: 3px; }
@keyframes fill {
0%, 100% { fill: blue; }
16% { fill: purple; }
33% { fill: hsl(0, 100%, 60%); }
50% { fill: orange; }
67% { fill: gold; }
83% { fill: hsl(120, 100%, 25%); }
}
@keyframes stroke {
0%, 100% { stroke: blue; }
16% { stroke: purple; }
33% { stroke: hsl(0, 100%, 60%); }
50% { stroke: orange; }
67% { stroke: gold; }
83% { stroke: hsl(120, 100%, 25%); }
}
a#generator.fatal [fill=blue], a#generator.error [fill=blue], .previous [fill=blue] { fill: #d00; }
a#generator.fatal [stroke=blue], a#generator.error [stroke=blue], .previous [stroke=blue] { stroke: #d00; }
a#generator.warning [fill=blue] { fill: #0df; }
a#generator.warning [stroke=blue] { stroke: #0df; }
a#generator.link-error [fill=blue] { fill: #cc0; }
a#generator.link-error [stroke=blue] { stroke: #cc0; }
a#generator.success [fill=blue] { fill: #0b0; }
a#generator.success [stroke=blue] { stroke: #0b0; }
a#generator [fill=blue], [stroke=blue] { animation: n 5s infinite linear; transition: fill 1s, stroke 1s; }
a#generator.pending [stroke=blue] { animation-name: stroke; }
a#generator.pending [fill=blue] { animation-name: fill; }
a#generator.generating [stroke=blue] { animation-name: stroke; }
a#generator.generating [fill=blue] { animation-name: fill; } --></style><link rel="stylesheet" type="text/css" href="./CSS Syntax Module Level 3_files/annotate.css"></head><body class="h-entry toc-sidebar"><p id="toc-nav"><a id="toc-jump" href="https://drafts.csswg.org/css-syntax-3/#toc"><span aria-hidden="true">↑</span> <span>Jump to Table of Contents</span></a><a id="toc-toggle" href="https://drafts.csswg.org/css-syntax-3/#toc"><span aria-hidden="true">←</span> <span>Collapse Sidebar</span></a></p>
  <div class="head">
   <p data-fill-with="logo"><a class="logo" href="http://www.w3.org/"> <img alt="W3C" height="48" src="./CSS Syntax Module Level 3_files/W3C" width="72"> </a> </p>
   <h1><div id="annotation_root_" class="annotation first closed" data-testcount="0" data-needcount="0"><div class="disclosure button" onclick="annotator.toggleAnnotations()"></div><div class="close button" onclick="annotator.removeAllAnnotations()"></div><div class="heading"><a href="https://test.csswg.org/harness/test/css-syntax-3_dev/">No Tests</a></div></div>CSS Syntax Module Level 3</h1>
   <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2016-09-20">20 September 2016</time></span></h2>
   <div data-fill-with="spec-metadata">
    <dl>
     <dt>This version:
     </dt><dd><a class="u-url" href="https://drafts.csswg.org/css-syntax/">https://drafts.csswg.org/css-syntax/</a>
     </dd><dt>Latest published version:
     </dt><dd><a href="https://www.w3.org/TR/css-syntax-3/">https://www.w3.org/TR/css-syntax-3/</a>
     </dd><dt>Previous Versions:
     </dt><dd><a href="https://www.w3.org/TR/2014/CR-css-syntax-3-20140220/" rel="previous">https://www.w3.org/TR/2014/CR-css-syntax-3-20140220/</a>
     </dd><dd><a href="https://www.w3.org/TR/2013/WD-css-syntax-3-20131105/" rel="previous">https://www.w3.org/TR/2013/WD-css-syntax-3-20131105/</a>
     </dd><dd><a href="https://www.w3.org/TR/2013/WD-css-syntax-3-20130919/" rel="previous">https://www.w3.org/TR/2013/WD-css-syntax-3-20130919/</a>
     </dd><dt>Test Suite:
     </dt><dd><a href="http://test.csswg.org/suites/css-syntax-3_dev/nightly-unstable/">http://test.csswg.org/suites/css-syntax-3_dev/nightly-unstable/</a>
     </dd><dt class="editor">Editors:
     </dt><dd class="editor p-author h-card vcard"><a class="p-name fn u-url url" href="http://xanthir.com/contact/">Tab Atkins Jr.</a> (<span class="p-org org">Google</span>)
     </dd><dd class="editor p-author h-card vcard"><a class="p-name fn u-url url" href="http://exyr.org/about/">Simon Sapin</a> (<span class="p-org org">Mozilla</span>)
     </dd><dt>Issue Tracking:
     </dt><dd><span><a href="https://github.com/w3c/csswg-drafts/labels/css-syntax-3">GitHub Issues</a></span>
    </dd></dl>
   </div>
   <div data-fill-with="warning"></div>
   <p class="copyright" data-fill-with="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2016 <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>). W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply. </p>
   <hr title="Separator for header">
  </div>
  <h2 class="no-num no-toc no-ref heading settled" id="abstract"><span class="content">Abstract</span></h2>
  <div class="p-summary" data-fill-with="abstract">
   <p>This module describes, in general terms, the basic structure and syntax of CSS stylesheets. It defines, in detail, the syntax and parsing of CSS - how to turn a stream of bytes into a meaningful stylesheet.</p>
    <a href="http://www.w3.org/TR/CSS/">CSS</a> is a language for describing the rendering of structured documents 
(such as HTML and XML) 
on screen, on paper, in speech, etc.
  </div>
  <h2 class="no-num no-toc no-ref heading settled" id="status"><span class="content">Status of this document</span></h2>
  <div data-fill-with="status">
   <p> This is a public copy of the editors’ draft.
	It is provided for discussion only and may change at any moment.
	Its publication here does not imply endorsement of its contents by W3C.
	Don’t cite this document other than as work in progress. </p>
   <p> <a href="https://github.com/w3c/csswg-drafts/issues">GitHub Issues</a> are preferred for discussion of this specification.
	When filing an issue, please put the text “css-syntax” in the title,
	preferably like this:
	“[css-syntax] <em>…summary of comment…</em>”.
	All issues and comments are <a href="https://lists.w3.org/Archives/Public/public-css-archive/">archived</a>,
	and there is also a <a href="http://lists.w3.org/Archives/Public/www-style/">historical archive</a>. </p>
   <p> This document was produced by the <a href="http://www.w3.org/Style/CSS/members">CSS Working Group</a> (part of the <a href="http://www.w3.org/Style/">Style Activity</a>). </p>
   <p> This document was produced by a group operating under
	the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 W3C Patent Policy</a>.
	W3C maintains a <a href="http://www.w3.org/2004/01/pp-impl/32061/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group;
	that page also includes instructions for disclosing a patent.
	An individual who has actual knowledge of a patent which the individual believes contains <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section 6 of the W3C Patent Policy</a>. </p>
   <p> This document is governed by the <a href="http://www.w3.org/2015/Process-20150901/" id="w3c_process_revision">1 September 2015 W3C Process Document</a>. </p>
   <p></p>
  </div>
  <div data-fill-with="at-risk"></div>
  <nav data-fill-with="table-of-contents" id="toc">
   <h2 class="no-num no-toc no-ref" id="contents">Table of Contents</h2>
   <ol class="toc" role="directory">
    <li>
     <a href="https://drafts.csswg.org/css-syntax-3/#intro"><span class="secno">1</span> <span class="content"> Introduction</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#placement"><span class="secno">1.1</span> <span class="content"> Module interactions</span></a>
     </li></ol>
    </li><li>
     <a href="https://drafts.csswg.org/css-syntax-3/#syntax-description"><span class="secno">2</span> <span class="content"> Description of CSS’s Syntax</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#escaping"><span class="secno">2.1</span> <span class="content"> Escaping</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#error-handling"><span class="secno">2.2</span> <span class="content"> Error Handling</span></a>
     </li></ol>
    </li><li>
     <a href="https://drafts.csswg.org/css-syntax-3/#tokenizing-and-parsing"><span class="secno">3</span> <span class="content"> Tokenizing and Parsing CSS</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#parsing-overview"><span class="secno">3.1</span> <span class="content"> Overview of the Parsing Model</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#input-byte-stream"><span class="secno">3.2</span> <span class="content"> The input byte stream</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#input-preprocessing"><span class="secno">3.3</span> <span class="content"> Preprocessing the input stream</span></a>
     </li></ol>
    </li><li>
     <a href="https://drafts.csswg.org/css-syntax-3/#tokenization"><span class="secno">4</span> <span class="content"> Tokenization</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#token-diagrams"><span class="secno">4.1</span> <span class="content"> Token Railroad Diagrams</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#tokenizer-definitions"><span class="secno">4.2</span> <span class="content"> Definitions</span></a>
      </li><li>
       <a href="https://drafts.csswg.org/css-syntax-3/#tokenizer-algorithms"><span class="secno">4.3</span> <span class="content"> Tokenizer Algorithms</span></a>
       <ol class="toc">
        <li><a href="https://drafts.csswg.org/css-syntax-3/#consume-token"><span class="secno">4.3.1</span> <span class="content"> Consume a token</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-comment"><span class="secno">4.3.2</span> <span class="content"> Consume comments</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-numeric-token"><span class="secno">4.3.3</span> <span class="content"> Consume a numeric token</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-ident-like-token"><span class="secno">4.3.4</span> <span class="content"> Consume an ident-like token</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-string-token"><span class="secno">4.3.5</span> <span class="content"> Consume a string token</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-url-token"><span class="secno">4.3.6</span> <span class="content"> Consume a url token</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-escaped-code-point"><span class="secno">4.3.7</span> <span class="content"> Consume an escaped code point</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#starts-with-a-valid-escape"><span class="secno">4.3.8</span> <span class="content"> Check if two code points are a valid escape</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#would-start-an-identifier"><span class="secno">4.3.9</span> <span class="content"> Check if three code points would start an identifier</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#starts-with-a-number"><span class="secno">4.3.10</span> <span class="content"> Check if three code points would start a number</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-name"><span class="secno">4.3.11</span> <span class="content"> Consume a name</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-number"><span class="secno">4.3.12</span> <span class="content"> Consume a number</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#convert-string-to-number"><span class="secno">4.3.13</span> <span class="content"> Convert a string to a number</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-remnants-of-bad-url"><span class="secno">4.3.14</span> <span class="content"> Consume the remnants of a bad url</span></a>
       </li></ol>
     </li></ol>
    </li><li>
     <a href="https://drafts.csswg.org/css-syntax-3/#parsing"><span class="secno">5</span> <span class="content"> Parsing</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#parser-diagrams"><span class="secno">5.1</span> <span class="content"> Parser Railroad Diagrams</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parser-definitions"><span class="secno">5.2</span> <span class="content"> Definitions</span></a>
      </li><li>
       <a href="https://drafts.csswg.org/css-syntax-3/#parser-entry-points"><span class="secno">5.3</span> <span class="content"> Parser Entry Points</span></a>
       <ol class="toc">
        <li><a href="https://drafts.csswg.org/css-syntax-3/#parse-grammar"><span class="secno">5.3.1</span> <span class="content"> Parse something according to a CSS grammar</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-stylesheet"><span class="secno">5.3.2</span> <span class="content"> Parse a stylesheet</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-list-of-rules"><span class="secno">5.3.3</span> <span class="content"> Parse a list of rules</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-rule"><span class="secno">5.3.4</span> <span class="content"> Parse a rule</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-declaration"><span class="secno">5.3.5</span> <span class="content"> Parse a declaration</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-list-of-declarations"><span class="secno">5.3.6</span> <span class="content"> Parse a list of declarations</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-component-value"><span class="secno">5.3.7</span> <span class="content"> Parse a component value</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-list-of-component-values"><span class="secno">5.3.8</span> <span class="content"> Parse a list of component values</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-comma-separated-list-of-component-values"><span class="secno">5.3.9</span> <span class="content"> Parse a comma-separated list of component values</span></a>
       </li></ol>
      </li><li>
       <a href="https://drafts.csswg.org/css-syntax-3/#parser-algorithms"><span class="secno">5.4</span> <span class="content"> Parser Algorithms</span></a>
       <ol class="toc">
        <li><a href="https://drafts.csswg.org/css-syntax-3/#consume-list-of-rules"><span class="secno">5.4.1</span> <span class="content"> Consume a list of rules</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-at-rule"><span class="secno">5.4.2</span> <span class="content"> Consume an at-rule</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-qualified-rule"><span class="secno">5.4.3</span> <span class="content"> Consume a qualified rule</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-list-of-declarations"><span class="secno">5.4.4</span> <span class="content"> Consume a list of declarations</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-declaration"><span class="secno">5.4.5</span> <span class="content"> Consume a declaration</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-component-value"><span class="secno">5.4.6</span> <span class="content"> Consume a component value</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-simple-block"><span class="secno">5.4.7</span> <span class="content"> Consume a simple block</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-function"><span class="secno">5.4.8</span> <span class="content"> Consume a function</span></a>
       </li></ol>
     </li></ol>
    </li><li>
     <a href="https://drafts.csswg.org/css-syntax-3/#anb-microsyntax"><span class="secno">6</span> <span class="content"> The <var>An+B</var> microsyntax</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#anb-syntax"><span class="secno">6.1</span> <span class="content"> Informal Syntax Description</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#the-anb-type"><span class="secno">6.2</span> <span class="content"> The <code>&lt;an+b&gt;</code> type</span></a>
     </li></ol>
    </li><li>
     <a href="https://drafts.csswg.org/css-syntax-3/#urange"><span class="secno">7</span> <span class="content"> The Unicode-Range microsyntax</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#urange-syntax"><span class="secno">7.1</span> <span class="content"> The <span class="production">&lt;urange&gt;</span> type</span></a>
     </li></ol>
    </li><li>
     <a href="https://drafts.csswg.org/css-syntax-3/#rule-defs"><span class="secno">8</span> <span class="content"> Defining Grammars for Rules and Other Values</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#declaration-rule-list"><span class="secno">8.1</span> <span class="content"> Defining Block Contents: the <span class="production">&lt;declaration-list&gt;</span>, <span class="production">&lt;rule-list&gt;</span>, and <span class="production">&lt;stylesheet&gt;</span> productions</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#any-value"><span class="secno">8.2</span> <span class="content"> Defining Arbitrary Contents: the <span class="production">&lt;declaration-value&gt;</span> and <span class="production">&lt;any-value&gt;</span> productions</span></a>
     </li></ol>
    </li><li>
     <a href="https://drafts.csswg.org/css-syntax-3/#css-stylesheets"><span class="secno">9</span> <span class="content"> CSS stylesheets</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#style-rules"><span class="secno">9.1</span> <span class="content"> Style rules</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#charset-rule"><span class="secno">9.2</span> <span class="content"> The <span class="css">@charset</span> Rule</span></a>
     </li></ol>
    </li><li>
     <a href="https://drafts.csswg.org/css-syntax-3/#serialization"><span class="secno">10</span> <span class="content"> Serialization</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#serializing-anb"><span class="secno">10.1</span> <span class="content"> Serializing <var>&lt;an+b&gt;</var></span></a>
     </li></ol>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#priv-sec"><span class="secno">11</span> <span class="content"> Privacy and Security Considerations</span></a>
    </li><li>
     <a href="https://drafts.csswg.org/css-syntax-3/#changes"><span class="secno">12</span> <span class="content"> Changes</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#changes-CR-20140220"><span class="secno">12.1</span> <span class="content"> Changes from the 20 February 2014 Candidate Recommendation</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#changes-WD-20131105"><span class="secno">12.2</span> <span class="content"> Changes from the 5 November 2013 Last Call Working Draft</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#changes-WD-20130919"><span class="secno">12.3</span> <span class="content"> Changes from the 19 September 2013 Working Draft</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#changes-css21"><span class="secno">12.4</span> <span class="content"> Changes from CSS 2.1 and Selectors Level 3</span></a>
     </li></ol>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#acknowledgments"><span class="secno"></span> <span class="content"> Acknowledgments</span></a>
    </li><li>
     <a href="https://drafts.csswg.org/css-syntax-3/#conformance"><span class="secno"></span> <span class="content"> Conformance</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#document-conventions"><span class="secno"></span> <span class="content"> Document conventions</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#conform-classes"><span class="secno"></span> <span class="content"> Conformance classes</span></a>
      </li><li>
       <a href="https://drafts.csswg.org/css-syntax-3/#conform-responsible"><span class="secno"></span> <span class="content"> Requirements for Responsible Implementation of CSS</span></a>
       <ol class="toc">
        <li><a href="https://drafts.csswg.org/css-syntax-3/#conform-partial"><span class="secno"></span> <span class="content"> Partial Implementations</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#conform-future-proofing"><span class="secno"></span> <span class="content"> Implementations of Unstable and Proprietary Features</span></a>
        </li><li><a href="https://drafts.csswg.org/css-syntax-3/#conform-testing"><span class="secno"></span> <span class="content"> Implementations of CR-level Features</span></a>
       </li></ol>
     </li></ol>
    </li><li>
     <a href="https://drafts.csswg.org/css-syntax-3/#index"><span class="secno"></span> <span class="content">Index</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#index-defined-here"><span class="secno"></span> <span class="content">Terms defined by this specification</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#index-defined-elsewhere"><span class="secno"></span> <span class="content">Terms defined by reference</span></a>
     </li></ol>
    </li><li>
     <a href="https://drafts.csswg.org/css-syntax-3/#references"><span class="secno"></span> <span class="content">References</span></a>
     <ol class="toc">
      <li><a href="https://drafts.csswg.org/css-syntax-3/#normative"><span class="secno"></span> <span class="content">Normative References</span></a>
      </li><li><a href="https://drafts.csswg.org/css-syntax-3/#informative"><span class="secno"></span> <span class="content">Informative References</span></a>
     </li></ol>
   </li></ol>
  </nav>
  <main>
   <h2 class="heading settled" data-level="1" id="intro"><span class="secno">1. </span><span class="content"> Introduction</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#intro"></a></h2>
   <p><em>This section is not normative.</em></p>
   <p>This module defines the abstract syntax and parsing of CSS stylesheets
	and other things which use CSS syntax
	(such as the HTML <code>style</code> attribute).</p>
   <p>It defines algorithms for converting a stream of Unicode <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-1">code points</a> (in other words, text)
	into a stream of CSS tokens,
	and then further into CSS objects
	such as stylesheets, rules, and declarations.</p>
   <h3 class="heading settled" data-level="1.1" id="placement"><span class="secno">1.1. </span><span class="content"> Module interactions</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#placement"></a></h3>
   <p>This module defines the syntax and parsing of CSS stylesheets.
	It supersedes the lexical scanner and grammar defined in CSS 2.1.</p>
   <h2 class="heading settled" data-level="2" id="syntax-description"><span class="secno">2. </span><span class="content"> Description of CSS’s Syntax</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#syntax-description"></a></h2>
   <p><em>This section is not normative.</em></p>
   <p>A CSS document is a series of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#style-rule" id="ref-for-style-rule-1">style rules</a>—<wbr>which are <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#qualified-rule" id="ref-for-qualified-rule-1">qualified rules</a> that apply styles to elements in a document—<wbr>and <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-1">at-rules</a>—<wbr>which define special processing rules or values for the CSS document.</p>
   <p>A <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#qualified-rule" id="ref-for-qualified-rule-2">qualified rule</a> starts with a prelude
	then has a {}-wrapped block containing a sequence of declarations.
	The meaning of the prelude varies based on the context that the rule appears in—<wbr>for <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#style-rule" id="ref-for-style-rule-2">style rules</a>, it’s a selector which specifies what elements the declarations will apply to.
	Each declaration has a name,
	followed by a colon and the declaration value.
	Declarations are separated by semicolons.</p>
   <div class="example" id="example-13803594">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-13803594"></a> 
    <p>A typical rule might look something like this:</p>
<pre>p &gt; a {
  color: blue;
  text-decoration: underline;
}
</pre>
    <p>In the above rule, "<code>p &gt; a</code>" is the selector,
		which, if the source document is HTML,
		selects any <code>&lt;a&gt;</code> elements that are children of a <code>&lt;p&gt;</code> element.</p>
    <p>"<code>color: blue</code>" is a declaration specifying that,
		for the elements that match the selector,
		their <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-color-3/#color0">color</a> property should have the value <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-color-4/#valdef-color-blue">blue</a>.
		Similarly, their <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-text-decor-3/#propdef-text-decoration">text-decoration</a> property should have the value <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-text-decor-3/#valdef-text-decoration-line-underline">underline</a>.</p>
   </div>
   <p><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-2">At-rules</a> are all different, but they have a basic structure in common.
	They start with an "@" <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-2">code point</a> followed by their name as a CSS keyword.
	Some <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-3">at-rules</a> are simple statements,
	with their name followed by more CSS values to specify their behavior,
	and finally ended by a semicolon.
	Others are blocks;
	they can have CSS values following their name,
	but they end with a {}-wrapped block,
	similar to a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#qualified-rule" id="ref-for-qualified-rule-3">qualified rule</a>.
	Even the contents of these blocks are specific to the given <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-4">at-rule</a>:
	sometimes they contain a sequence of declarations, like a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#qualified-rule" id="ref-for-qualified-rule-4">qualified rule</a>;
	other times, they may contain additional blocks, or at-rules, or other structures altogether.</p>
   <div class="example" id="example-c3aabb99">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-c3aabb99"></a> 
    <p>Here are several examples of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-5">at-rules</a> that illustrate the varied syntax they may contain.</p>
<pre>@import "my-styles.css";</pre>
    <p>The <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-cascade-4/#at-ruledef-import">@import</a> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-6">at-rule</a> is a simple statement.
		After its name, it takes a single string or <span class="css">url()</span> function to indicate the stylesheet that it should import.</p>
<pre>@page :left {
  margin-left: 4cm;
  margin-right: 3cm;
}
</pre>
    <p>The <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-page-3/#at-ruledef-page">@page</a> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-7">at-rule</a> consists of an optional page selector (the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-page-3/#valdef-page-left">:left</a> pseudoclass),
		followed by a block of properties that apply to the page when printed.
		In this way, it’s very similar to a normal style rule,
		except that its properties don’t apply to any "element",
		but rather the page itself.</p>
<pre>@media print {
  body { font-size: 10pt }
}
</pre>
    <p>The <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-conditional-3/#at-ruledef-media">@media</a> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-8">at-rule</a> begins with a media type
		and a list of optional media queries.
		Its block contains entire rules,
		which are only applied when the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-conditional-3/#at-ruledef-media">@media</a>s conditions are fulfilled.</p>
   </div>
   <p>Property names and <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-9">at-rule</a> names are always <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#identifier" id="ref-for-identifier-1">identifiers</a>,
	which have to start with a letter or a hyphen followed by a letter,
	and then can contain letters, numbers, hyphens, or underscores.
	You can include any <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-3">code point</a> at all,
	even ones that CSS uses in its syntax,
	by <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#escape-codepoint" id="ref-for-escape-codepoint-1">escaping</a> it.</p>
   <p>The syntax of selectors is defined in the <a href="https://www.w3.org/TR/selectors/">Selectors spec</a>.
	Similarly, the syntax of the wide variety of CSS values is defined in the <a href="https://www.w3.org/TR/css3-values/">Values &amp; Units spec</a>.
	The special syntaxes of individual <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-10">at-rules</a> can be found in the specs that define them.</p>
   <h3 class="heading settled" data-level="2.1" id="escaping"><span class="secno">2.1. </span><span class="content"> Escaping</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#escaping"></a></h3>
   <p><em>This section is not normative.</em></p>
   <p>Any Unicode <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-4">code point</a> can be included in an <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#identifier" id="ref-for-identifier-2">identifier</a> or quoted string
	by <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="escape-codepoint">escaping</dfn> it.
	CSS escape sequences start with a backslash (\), and continue with:</p>
   <ul>
    <li> Any Unicode <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-5">code point</a> that is not a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#hex-digit" id="ref-for-hex-digit-1">hex digits</a> or a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#newline" id="ref-for-newline-1">newline</a>.
			The escape sequence is replaced by that <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-6">code point</a>. 
    </li><li>
      Or one to six <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#hex-digit" id="ref-for-hex-digit-2">hex digits</a>, followed by an optional <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#whitespace" id="ref-for-whitespace-1">whitespace</a>.
			The escape sequence is replaced by the Unicode <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-7">code point</a> whose value is given by the hexadecimal digits.
			This optional whitespace allow hexadecimal escape sequences
			to be followed by "real" hex digits. 
     <p class="example" id="example-b1ddbf19"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-b1ddbf19"></a> An <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#identifier" id="ref-for-identifier-3">identifier</a> with the value "&amp;B"
				could be written as <span class="css">\26 B</span> or <span class="css">\000026B</span>. </p>
     <p class="note" role="note"> A "real" space after the escape sequence must be doubled. </p>
   </li></ul>
   <h3 class="heading settled" data-level="2.2" id="error-handling"><span class="secno">2.2. </span><span class="content"> Error Handling</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#error-handling"></a></h3>
   <p><em>This section is not normative.</em></p>
   <p>When errors occur in CSS,
	the parser attempts to recover gracefully,
	throwing away only the minimum amount of content
	before returning to parsing as normal.
	This is because errors aren’t always mistakes—<wbr>new syntax looks like an error to an old parser,
	and it’s useful to be able to add new syntax to the language
	without worrying about stylesheets that include it being completely broken in older UAs.</p>
   <p>The precise error-recovery behavior is detailed in the parser itself,
	but it’s simple enough that a short description is fairly accurate.</p>
   <ul>
    <li> At the "top level" of a stylesheet,
			an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token" id="ref-for-typedef-at-keyword-token-1">&lt;at-keyword-token&gt;</a> starts an at-rule.
			Anything else starts a qualified rule,
			and is included in the rule’s prelude.
			This may produce an invalid selector,
			but that’s not the concern of the CSS parser—<wbr>at worst, it means the selector will match nothing. 
    </li><li> Once an at-rule starts,
			nothing is invalid from the parser’s standpoint;
			it’s all part of the at-rule’s prelude.
			Encountering a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-semicolon-token" id="ref-for-typedef-semicolon-token-1">&lt;semicolon-token&gt;</a> ends the at-rule immediately,
			while encountering an opening curly-brace <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-curly" id="ref-for-tokendef-open-curly-1">&lt;{-token&gt;</a> starts the at-rule’s body.
			The at-rule seeks forward, matching blocks (content surrounded by (), {}, or [])
			until it finds a closing curly-brace <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-curly" id="ref-for-tokendef-close-curly-1">&lt;}-token&gt;</a> that isn’t matched by anything else
			or inside of another block.
			The contents of the at-rule are then interpreted according to the at-rule’s own grammar. 
    </li><li> Qualified rules work similarly,
			except that semicolons don’t end them;
			instead, they are just taken in as part of the rule’s prelude.
			When the first {} block is found,
			the contents are always interpreted as a list of declarations. 
    </li><li> When interpreting a list of declarations,
			unknown syntax at any point causes the parser to throw away whatever declaration it’s currently building,
			and seek forward until it finds a semicolon (or the end of the block).
			It then starts fresh, trying to parse a declaration again. 
    </li><li> If the stylesheet ends while any rule, declaration, function, string, etc. are still open,
			everything is automatically closed.
			This doesn’t make them invalid,
			though they may be incomplete
			and thus thrown away when they are verified against their grammar. 
   </li></ul>
   <p>After each construct (declaration, style rule, at-rule) is parsed,
	the user agent checks it against its expected grammar.
	If it does not match the grammar,
	it’s <dfn class="dfn-paneled" data-dfn-for="css" data-dfn-type="dfn" data-export="" id="css-invalid">invalid</dfn>,
	and gets <dfn data-dfn-for="css" data-dfn-type="dfn" data-export="" id="css-ignored">ignored<a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#css-ignored"></a></dfn> by the UA,
	which treats it as if it wasn’t there at all.</p>
   <h2 class="heading settled" data-level="3" id="tokenizing-and-parsing"><span class="secno">3. </span><span class="content"> Tokenizing and Parsing CSS</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#tokenizing-and-parsing"></a></h2>
   <p>User agents must use the parsing rules described in this specification
	to generate the CSSOM trees from text/css resources.
	Together, these rules define what is referred to as the CSS parser.</p>
   <p>This specification defines the parsing rules for CSS documents,
	whether they are syntactically correct or not.
	Certain points in the parsing algorithm are said to be a <dfn class="dfn-paneled" data-dfn-type="dfn" data-lt="parse error" data-noexport="" id="parse-error">parse errors</dfn>.
	The error handling for parse errors is well-defined:
	user agents must either act as described below when encountering such problems,
	or must abort processing at the first error that they encounter for which they do not wish to apply the rules described below.</p>
   <p>Conformance checkers must report at least one parse error condition to the user
	if one or more parse error conditions exist in the document
	and must not report parse error conditions
	if none exist in the document.
	Conformance checkers may report more than one parse error condition if more than one parse error condition exists in the document.
	Conformance checkers are not required to recover from parse errors,
	but if they do,
	they must recover in the same way as user agents.</p>
   <h3 class="heading settled" data-level="3.1" id="parsing-overview"><span class="secno">3.1. </span><span class="content"> Overview of the Parsing Model</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parsing-overview"></a></h3>
   <p>The input to the CSS parsing process consists of a stream of Unicode <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-8">code points</a>,
	which is passed through a tokenization stage followed by a tree construction stage.
	The output is a CSSStyleSheet object.</p>
   <p class="note" role="note">Note: Implementations that do not support scripting do not have to actually create a CSSOM CSSStyleSheet object,
	but the CSSOM tree in such cases is still used as the model for the rest of the specification.</p>
   <h3 class="heading settled" data-level="3.2" id="input-byte-stream"><span class="secno">3.2. </span><span class="content"> The input byte stream</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#input-byte-stream"></a></h3>
   <p>When parsing a stylesheet,
	the stream of Unicode <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-9">code points</a> that comprises the input to the tokenization stage
	might be initially seen by the user agent as a stream of bytes
	(typically coming over the network or from the local file system).
	If so, the user agent must decode these bytes into <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-10">code points</a> according to a particular character encoding.</p>
   <p>To decode the stream of bytes into a stream of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-11">code points</a>,
	UAs must use the <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="decode"><a href="http://encoding.spec.whatwg.org/#decode">decode</a></dfn> algorithm
	defined in <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-encoding">[ENCODING]</a>,
	with the fallback encoding determined as follows.</p>
   <p class="note" role="note">Note: The <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#decode" id="ref-for-decode-1">decode</a> algorithm
	gives precedence to a byte order mark (BOM),
	and only uses the fallback when none is found.</p>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="determine-the-fallback-encoding">determine the fallback encoding</dfn>:</p>
   <ol>
    <li> If HTTP or equivalent protocol defines an encoding (e.g. via the charset parameter of the Content-Type header), <dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="get-an-encoding"><a href="http://encoding.spec.whatwg.org/#concept-encoding-get">get an encoding</a></dfn> <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-encoding">[ENCODING]</a> for the specified value.
			If that does not return failure,
			use the return value as the fallback encoding. 
    </li><li>
      Otherwise, check the byte stream.
			If the first 1024 bytes of the stream begin with the hex sequence 
<pre>40 63 68 61 72 73 65 74 20 22 XX* 22 3B</pre>
     <p>where each <code>XX</code> byte is a value between 0<sub>16</sub> and 21<sub>16</sub> inclusive
			or a value between 23<sub>16</sub> and 7F<sub>16</sub> inclusive,
			then <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#get-an-encoding" id="ref-for-get-an-encoding-1">get an encoding</a> for the sequence of <code>XX</code> bytes,
			interpreted as <code>ASCII</code>.</p>
     <details class="why">
      <summary>What does that byte sequence mean?</summary>
      <p>The byte sequence above,
				when decoded as ASCII,
				is the string "<code>@charset "…";</code>",
				where the "…" is the sequence of bytes corresponding to the encoding’s label.</p>
     </details>
     <p>If the return value was <code>utf-16be</code> or <code>utf-16le</code>,
			use <code>utf-8</code> as the fallback encoding;
			if it was anything else except failure,
			use the return value as the fallback encoding.</p>
     <details class="why">
      <summary>Why use utf-8 when the declaration says utf-16?</summary>
      <p>The bytes of the encoding declaration spell out “<code>@charset "…";</code>” in ASCII,
				but UTF-16 is not ASCII-compatible.
				Either you’ve typed in complete gibberish (like <code>䁣桡牳整•utf-16be∻</code>) to get the right bytes in the document,
				which we don’t want to encourage,
				or your document is actually in an ASCII-compatible encoding
				and your encoding declaration is lying.</p>
      <p>Either way, defaulting to UTF-8 is a decent answer.</p>
      <p>As well, this mimics the behavior of HTML’s <code>&lt;meta charset&gt;</code> attribute.</p>
     </details>
     <p class="note" role="note">Note: Note that the syntax of an encoding declaration <em>looks like</em> the syntax of an <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-11">at-rule</a> named <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-syntax-3/#at-ruledef-charset" id="ref-for-at-ruledef-charset-1">@charset</a>,
			but no such rule actually exists,
			and the rules for how you can write it are much more restrictive than they would normally be for recognizing such a rule.
			A number of things you can do in CSS that would produce a valid <a class="css" data-link-type="at-rule" href="https://drafts.csswg.org/css-syntax-3/#at-ruledef-charset" id="ref-for-at-ruledef-charset-2">@charset</a> rule (if one existed),
			such as using multiple spaces, comments, or single quotes,
			will cause the encoding declaration to not be recognized.
			This behavior keeps the encoding declaration as simple as possible,
			and thus maximizes the likelihood of it being implemented correctly.</p>
    </li><li> Otherwise, if an <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#environment-encoding" id="ref-for-environment-encoding-1">environment encoding</a> is provided by the referring document,
			use that as the fallback encoding. 
    </li><li> Otherwise, use <code>utf-8</code> as the fallback encoding. 
   </li></ol>
   <div class="note" role="note">
    <p>Though UTF-8 is the default encoding for the web,
		and many newer web-based file formats assume or require UTF-8 encoding,
		CSS was created before it was clear which encoding would win,
		and thus can’t automatically assume the stylesheet is UTF-8.</p>
    <p>Stylesheet authors <em>should</em> author their stylesheets in UTF-8,
		and ensure that either an HTTP header (or equivalent method) declares the encoding of the stylesheet to be UTF-8,
		or that the referring document declares its encoding to be UTF-8.
		(In HTML, this is done by adding a <code>&lt;meta charset=utf-8&gt;</code> element to the head of the document.)</p>
    <p>If neither of these options are available,
		authors should begin the stylesheet with a UTF-8 BOM
		or the exact characters</p>
<pre>@charset "utf-8";</pre>
   </div>
   <p>Document languages that refer to CSS stylesheets that are decoded from bytes
	may define an <dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="environment-encoding">environment encoding</dfn> for each such stylesheet,
	which is used as a fallback when other encoding hints are not available or can not be used.</p>
   <p>The concept of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#environment-encoding" id="ref-for-environment-encoding-2">environment encoding</a> only exists for compatibility with legacy content.
	New formats and new linking mechanisms <b>should not</b> provide an <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#environment-encoding" id="ref-for-environment-encoding-3">environment encoding</a>,
	so the stylesheet defaults to UTF-8 instead in the absence of more explicit information.</p>
   <p class="note" role="note">Note: <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-html">[HTML]</a> defines <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#link-type-stylesheet">the environment encoding for <code>&lt;link rel=stylesheet&gt;</code></a>.</p>
   <p class="note" role="note">Note: <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-cssom">[CSSOM]</a> defines <a href="https://drafts.csswg.org/cssom/#requirements-on-user-agents-implementing-the-xml-stylesheet-processing-instruction">the environment encoding for <code>&lt;xml-stylesheet?&gt;</code></a>.</p>
   <p class="note" role="note">Note: <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-css3cascade">[CSS3CASCADE]</a> defines <a href="https://drafts.csswg.org/css-cascade/#at-ruledef-import">the environment encoding for <code>@import</code></a>.</p>
   <h3 class="heading settled" data-level="3.3" id="input-preprocessing"><span class="secno">3.3. </span><span class="content"> Preprocessing the input stream</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#input-preprocessing"></a></h3>
   <p>The input stream consists of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-12">code points</a> pushed into it as the input byte stream is decoded.</p>
   <p>Before sending the input stream to the tokenizer,
	implementations must make the following <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-13">code point</a> substitutions:</p>
   <ul>
    <li> Replace any U+000D CARRIAGE RETURN (CR) <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-14">code points</a>,
			U+000C FORM FEED (FF) <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-15">code points</a>,
			or pairs of U+000D CARRIAGE RETURN (CR) followed by U+000A LINE FEED (LF),
			by a single U+000A LINE FEED (LF) <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-16">code point</a>. 
    </li><li> Replace any U+0000 NULL <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-17">code point</a> with U+FFFD REPLACEMENT CHARACTER (�). 
   </li></ul>
   <h2 class="heading settled" data-level="4" id="tokenization"><span class="secno">4. </span><span class="content"> Tokenization</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#tokenization"></a></h2>
   <p>Implementations must act as if they used the following algorithms to tokenize CSS.
	To transform a stream of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-18">code points</a> into a stream of tokens,
	repeatedly <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-token" id="ref-for-consume-a-token-1">consume a token</a> until an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-1">&lt;EOF-token&gt;</a> is reached,
	collecting the returned tokens into a stream.
	Each call to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-token" id="ref-for-consume-a-token-2">consume a token</a> algorithm
	returns a single token,
	so it can also be used "on-demand" to tokenize a stream of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-19">code points</a> <em>during</em> parsing,
	if so desired.</p>
   <p>The output of the tokenization step is a stream of zero or more of the following tokens: <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-ident-token">&lt;ident-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-function-token">&lt;function-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-at-keyword-token">&lt;at-keyword-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-hash-token">&lt;hash-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-string-token">&lt;string-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-bad-string-token">&lt;bad-string-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-url-token">&lt;url-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-bad-url-token">&lt;bad-url-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-delim-token">&lt;delim-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-number-token">&lt;number-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-percentage-token">&lt;percentage-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-dimension-token">&lt;dimension-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-include-match-token">&lt;include-match-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-dash-match-token">&lt;dash-match-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-prefix-match-token">&lt;prefix-match-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-suffix-match-token">&lt;suffix-match-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-substring-match-token">&lt;substring-match-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-column-token">&lt;column-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-whitespace-token">&lt;whitespace-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-cdo-token">&lt;CDO-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-cdc-token">&lt;CDC-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-colon-token">&lt;colon-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-semicolon-token">&lt;semicolon-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-comma-token">&lt;comma-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="tokendef-open-square">&lt;[-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="tokendef-close-square">&lt;]-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="tokendef-open-paren">&lt;(-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="tokendef-close-paren">&lt;)-token&gt;</dfn>, <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="tokendef-open-curly">&lt;{-token&gt;</dfn>,
	and <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="tokendef-close-curly">&lt;}-token&gt;</dfn>.</p>
   <ul>
    <li> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-1">&lt;ident-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token" id="ref-for-typedef-function-token-1">&lt;function-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token" id="ref-for-typedef-at-keyword-token-2">&lt;at-keyword-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-hash-token" id="ref-for-typedef-hash-token-1">&lt;hash-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-string-token" id="ref-for-typedef-string-token-1">&lt;string-token&gt;</a>, and <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-1">&lt;url-token&gt;</a> have a value composed of zero or more <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-20">code points</a>.
			Additionally, hash tokens have a type flag set to either "id" or "unrestricted".  The type flag defaults to "unrestricted" if not otherwise set. 
    </li><li> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-1">&lt;delim-token&gt;</a> has a value composed of a single <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-21">code point</a>. 
    </li><li> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token" id="ref-for-typedef-number-token-1">&lt;number-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-percentage-token" id="ref-for-typedef-percentage-token-1">&lt;percentage-token&gt;</a>, and <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-1">&lt;dimension-token&gt;</a> have a representation composed of one or more <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-22">code points</a>, and a numeric value. <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token" id="ref-for-typedef-number-token-2">&lt;number-token&gt;</a> and <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-2">&lt;dimension-token&gt;</a> additionally have a type flag set to either "integer" or "number".  The type flag defaults to "integer" if not otherwise set. <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-3">&lt;dimension-token&gt;</a> additionally have a unit composed of one or more <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-23">code points</a>. 
   </li></ul>
   <p class="note" role="note">Note: The type flag of hash tokens is used in the Selectors syntax <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-select">[SELECT]</a>.
	Only hash tokens with the "id" type are valid <a href="https://www.w3.org/TR/selectors/#id-selectors">ID selectors</a>.</p>
   <p class="note" role="note">Note: As a technical note,
	the tokenizer defined here requires only three <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-24">code points</a> of look-ahead.
	The tokens it produces are designed to allow Selectors to be parsed with one token of look-ahead,
	and additional tokens may be added in the future to maintain this invariant.</p>
   <h3 class="heading settled" data-level="4.1" id="token-diagrams"><span class="secno">4.1. </span><span class="content"> Token Railroad Diagrams</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#token-diagrams"></a></h3>
   <p><em>This section is non-normative.</em></p>
   <p>This section presents an informative view of the tokenizer,
	in the form of railroad diagrams.
	Railroad diagrams are more compact than an explicit parser,
	but often easier to read than an regular expression.</p>
   <p>These diagrams are <em>informative</em> and <em>incomplete</em>;
	they describe the grammar of "correct" tokens,
	but do not describe error-handling at all.
	They are provided solely to make it easier to get an intuitive grasp of the syntax of each token.</p>
   <p>Diagrams with names such as <em>&lt;foo-token&gt;</em> represent tokens.
	The rest are productions referred to by other diagrams.</p>
   <dl>
    <dt id="comment-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#comment-diagram"></a>comment 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="81" viewBox="0 0 497 81" width="497">
       <g transform="translate(.5 .5)">
        <path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 41h10"></path>
        <path d="M86 41h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 41h0.0"></path>
         <path d="M86.0 41h0.0"></path>
         <rect height="22" rx="10" ry="10" width="36" x="50.0" y="30"></rect>
         <text x="68.0" y="45"> /*</text>
        </g>
        <g data-type="choice" data-updown="21 20">
         <path d="M96 41h0.0"></path>
         <path d="M400.0 41h0.0"></path>
         <path d="M96.0 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <path d="M380.0 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M116.0 21h264"></path>
         </g>
         <path d="M96.0 41h20"></path>
         <path d="M380.0 41h20"></path>
         <g data-type="oneormore" data-updown="11 20">
          <path d="M116.0 41h0.0"></path>
          <path d="M380.0 41h0.0"></path>
          <path d="M116.0 41h10"></path>
          <path d="M370.0 41h10"></path>
          <path d="M126.0 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
          <path d="M370.0 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M126.0 41h0.0"></path>
           <path d="M370.0 41h0.0"></path>
           <rect height="22" width="244" x="126.0" y="30"></rect>
           <text x="248.0" y="45"> anything but * followed by /</text>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M126.0 61h244"></path>
          </g>
         </g>
        </g>
        <path d="M400 41h10"></path>
        <path d="M446 41h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M410 41h0.0"></path>
         <path d="M446.0 41h0.0"></path>
         <rect height="22" rx="10" ry="10" width="36" x="410.0" y="30"></rect>
         <text x="428.0" y="45"> */</text>
        </g>
        <path d="M 456 41 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="newline-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#newline-diagram"></a>newline 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="152" viewBox="0 0 173 152" width="173">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <g data-type="choice" data-updown="11 101">
         <path d="M40 31h0.0"></path>
         <path d="M132.0 31h0.0"></path>
         <path d="M40.0 31h20"></path>
         <path d="M112.0 31h20"></path>
         <g data-type="terminal" data-updown="11 11">
          <path d="M60.0 31h8.0"></path>
          <path d="M104.0 31h8.0"></path>
          <rect height="22" rx="10" ry="10" width="36" x="68.0" y="20"></rect>
          <text x="86.0" y="35"> \n</text>
         </g>
         <path d="M40.0 31a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
         <path d="M112.0 61a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
         <g data-type="terminal" data-updown="11 11">
          <path d="M60.0 61h0.0"></path>
          <path d="M112.0 61h0.0"></path>
          <rect height="22" rx="10" ry="10" width="52" x="60.0" y="50"></rect>
          <text x="86.0" y="65"> \r\n</text>
         </g>
         <path d="M40.0 31a10 10 0 0 1 10 10v40a10 10 0 0 0 10 10"></path>
         <path d="M112.0 91a10 10 0 0 0 10 -10v-40a10 10 0 0 1 10 -10"></path>
         <g data-type="terminal" data-updown="11 11">
          <path d="M60.0 91h8.0"></path>
          <path d="M104.0 91h8.0"></path>
          <rect height="22" rx="10" ry="10" width="36" x="68.0" y="80"></rect>
          <text x="86.0" y="95"> \r</text>
         </g>
         <path d="M40.0 31a10 10 0 0 1 10 10v70a10 10 0 0 0 10 10"></path>
         <path d="M112.0 121a10 10 0 0 0 10 -10v-70a10 10 0 0 1 10 -10"></path>
         <g data-type="terminal" data-updown="11 11">
          <path d="M60.0 121h8.0"></path>
          <path d="M104.0 121h8.0"></path>
          <rect height="22" rx="10" ry="10" width="36" x="68.0" y="110"></rect>
          <text x="86.0" y="125"> \f</text>
         </g>
        </g>
        <path d="M 132 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="whitespace-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#whitespace-diagram"></a>whitespace 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="122" viewBox="0 0 197 122" width="197">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <g data-type="choice" data-updown="11 71">
         <path d="M40 31h0.0"></path>
         <path d="M156.0 31h0.0"></path>
         <path d="M40.0 31h20"></path>
         <path d="M136.0 31h20"></path>
         <g data-type="terminal" data-updown="11 11">
          <path d="M60.0 31h8.0"></path>
          <path d="M128.0 31h8.0"></path>
          <rect height="22" rx="10" ry="10" width="60" x="68.0" y="20"></rect>
          <text x="98.0" y="35"> space</text>
         </g>
         <path d="M40.0 31a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
         <path d="M136.0 61a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
         <g data-type="terminal" data-updown="11 11">
          <path d="M60.0 61h20.0"></path>
          <path d="M116.0 61h20.0"></path>
          <rect height="22" rx="10" ry="10" width="36" x="80.0" y="50"></rect>
          <text x="98.0" y="65"> \t</text>
         </g>
         <path d="M40.0 31a10 10 0 0 1 10 10v40a10 10 0 0 0 10 10"></path>
         <path d="M136.0 91a10 10 0 0 0 10 -10v-40a10 10 0 0 1 10 -10"></path>
         <g data-type="non-terminal" data-updown="11 11">
          <path d="M60.0 91h0.0"></path>
          <path d="M136.0 91h0.0"></path>
          <rect height="22" width="76" x="60.0" y="80"></rect>
          <text x="98.0" y="95"> newline</text>
         </g>
        </g>
        <path d="M 156 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="hex-digit-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#hex-digit-diagram"></a>hex digit 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 233 62" width="233">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M182 31h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M182.0 31h0.0"></path>
         <rect height="22" width="132" x="50.0" y="20"></rect>
         <text x="116.0" y="35"> 0-9 a-f or A-F</text>
        </g>
        <path d="M 192 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="escape-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#escape-diagram"></a>escape 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="122" viewBox="0 0 441 122" width="441">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M78 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M78.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="50.0" y="20"></rect>
         <text x="64.0" y="35"> \</text>
        </g>
        <g data-type="choice" data-updown="11 71">
         <path d="M88 31h0.0"></path>
         <path d="M400.0 31h0.0"></path>
         <path d="M88.0 31h20"></path>
         <path d="M380.0 31h20"></path>
         <g data-type="non-terminal" data-updown="11 11">
          <path d="M108.0 31h30.0"></path>
          <path d="M350.0 31h30.0"></path>
          <rect height="22" width="212" x="138.0" y="20"></rect>
          <text x="244.0" y="35"> not newline or hex digit</text>
         </g>
         <path d="M88.0 31a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
         <path d="M380.0 61a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
         <g data-type="sequence" data-updown="11 41">
          <path d="M108.0 61h0.0"></path>
          <path d="M380.0 61h0.0"></path>
          <path d="M108.0 61h10"></path>
          <path d="M230.0 61h10"></path>
          <g data-type="oneormore" data-updown="11 41">
           <path d="M118.0 61h0.0"></path>
           <path d="M230.0 61h0.0"></path>
           <path d="M118.0 61h10"></path>
           <path d="M220.0 61h10"></path>
           <path d="M128.0 61a10 10 0 0 0 -10 10v10a10 10 0 0 0 10 10"></path>
           <path d="M220.0 91a10 10 0 0 0 10 -10v-10a10 10 0 0 0 -10 -10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M128.0 61h0.0"></path>
            <path d="M220.0 61h0.0"></path>
            <rect height="22" width="92" x="128.0" y="50"></rect>
            <text x="174.0" y="65"> hex digit</text>
           </g>
           <g data-type="comment" data-updown="11 11">
            <path d="M128.0 91h9.5"></path>
            <path d="M210.5 91h9.5"></path>
            <text class="comment" x="174.0" y="96"> 1-6 times</text>
           </g>
          </g>
          <g data-type="choice" data-updown="10 40">
           <path d="M240.0 61h0.0"></path>
           <path d="M380.0 61h0.0"></path>
           <path d="M240.0 61h20"></path>
           <path d="M360.0 61h20"></path>
           <g data-type="skip" data-updown="0 0">
            <path d="M260.0 61h100"></path>
           </g>
           <path d="M240.0 61a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
           <path d="M360.0 81a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M260.0 81h0.0"></path>
            <path d="M360.0 81h0.0"></path>
            <rect height="22" width="100" x="260.0" y="70"></rect>
            <text x="310.0" y="85"> whitespace</text>
           </g>
          </g>
         </g>
        </g>
        <path d="M 400 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="whitespace-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#whitespace-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-1">&lt;whitespace-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="71" viewBox="0 0 221 71" width="221">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M170 31h10"></path>
        <g data-type="oneormore" data-updown="11 20">
         <path d="M50 31h0.0"></path>
         <path d="M170.0 31h0.0"></path>
         <path d="M50.0 31h10"></path>
         <path d="M160.0 31h10"></path>
         <path d="M60.0 31a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
         <path d="M160.0 51a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
         <g data-type="non-terminal" data-updown="11 11">
          <path d="M60.0 31h0.0"></path>
          <path d="M160.0 31h0.0"></path>
          <rect height="22" width="100" x="60.0" y="20"></rect>
          <text x="110.0" y="35"> whitespace</text>
         </g>
         <g data-type="skip" data-updown="0 0">
          <path d="M60.0 51h100"></path>
         </g>
        </g>
        <path d="M 180 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="ws*-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#ws%2A-diagram"></a>ws* 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="81" viewBox="0 0 305 81" width="305">
       <g transform="translate(.5 .5)">
        <path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <g data-type="choice" data-updown="21 20">
         <path d="M40 41h0.0"></path>
         <path d="M264.0 41h0.0"></path>
         <path d="M40.0 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <path d="M244.0 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M60.0 21h184"></path>
         </g>
         <path d="M40.0 41h20"></path>
         <path d="M244.0 41h20"></path>
         <g data-type="oneormore" data-updown="11 20">
          <path d="M60.0 41h0.0"></path>
          <path d="M244.0 41h0.0"></path>
          <path d="M60.0 41h10"></path>
          <path d="M234.0 41h10"></path>
          <path d="M70.0 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
          <path d="M234.0 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M70.0 41h0.0"></path>
           <path d="M234.0 41h0.0"></path>
           <rect height="22" width="164" x="70.0" y="30"></rect>
           <text x="152.0" y="45"> &lt;whitespace-token&gt;</text>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M70.0 61h164"></path>
          </g>
         </g>
        </g>
        <path d="M 264 41 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="ident-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#ident-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-2">&lt;ident-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="130" viewBox="0 0 769 130" width="769">
       <g transform="translate(.5 .5)">
        <path d="M 20 51 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <g data-type="choice" data-updown="41 41">
         <path d="M40 61h0.0"></path>
         <path d="M384.0 61h0.0"></path>
         <path d="M40.0 61a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
         <path d="M364.0 31a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
         <g data-type="terminal" data-updown="11 11">
          <path d="M60.0 31h134.0"></path>
          <path d="M230.0 31h134.0"></path>
          <rect height="22" rx="10" ry="10" width="36" x="194.0" y="20"></rect>
          <text x="212.0" y="35"> --</text>
         </g>
         <path d="M40.0 61h20"></path>
         <path d="M364.0 61h20"></path>
         <g data-type="sequence" data-updown="11 41">
          <path d="M60.0 61h0.0"></path>
          <path d="M364.0 61h0.0"></path>
          <g data-type="choice" data-updown="10 40">
           <path d="M60.0 61h0.0"></path>
           <path d="M128.0 61h0.0"></path>
           <path d="M60.0 61h20"></path>
           <path d="M108.0 61h20"></path>
           <g data-type="skip" data-updown="0 0">
            <path d="M80.0 61h28"></path>
           </g>
           <path d="M60.0 61a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
           <path d="M108.0 81a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
           <g data-type="terminal" data-updown="11 11">
            <path d="M80.0 81h0.0"></path>
            <path d="M108.0 81h0.0"></path>
            <rect height="22" rx="10" ry="10" width="28" x="80.0" y="70"></rect>
            <text x="94.0" y="85"> -</text>
           </g>
          </g>
          <g data-type="choice" data-updown="11 41">
           <path d="M128.0 61h0.0"></path>
           <path d="M364.0 61h0.0"></path>
           <path d="M128.0 61h20"></path>
           <path d="M344.0 61h20"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M148.0 61h0.0"></path>
            <path d="M344.0 61h0.0"></path>
            <rect height="22" width="196" x="148.0" y="50"></rect>
            <text x="246.0" y="65"> a-z A-Z _ or non-ASCII</text>
           </g>
           <path d="M128.0 61a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
           <path d="M344.0 91a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M148.0 91h64.0"></path>
            <path d="M280.0 91h64.0"></path>
            <rect height="22" width="68" x="212.0" y="80"></rect>
            <text x="246.0" y="95"> escape</text>
           </g>
          </g>
         </g>
        </g>
        <g data-type="choice" data-updown="21 49">
         <path d="M384 61h0.0"></path>
         <path d="M728.0 61h0.0"></path>
         <path d="M384.0 61a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <path d="M708.0 41a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M404.0 41h304"></path>
         </g>
         <path d="M384.0 61h20"></path>
         <path d="M708.0 61h20"></path>
         <g data-type="oneormore" data-updown="11 49">
          <path d="M404.0 61h0.0"></path>
          <path d="M708.0 61h0.0"></path>
          <path d="M404.0 61h10"></path>
          <path d="M698.0 61h10"></path>
          <path d="M414.0 61a10 10 0 0 0 -10 10v29a10 10 0 0 0 10 10"></path>
          <path d="M698.0 110a10 10 0 0 0 10 -10v-29a10 10 0 0 0 -10 -10"></path>
          <g data-type="choice" data-updown="11 41">
           <path d="M414.0 61h0.0"></path>
           <path d="M698.0 61h0.0"></path>
           <path d="M414.0 61h20"></path>
           <path d="M678.0 61h20"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M434.0 61h0.0"></path>
            <path d="M678.0 61h0.0"></path>
            <rect height="22" width="244" x="434.0" y="50"></rect>
            <text x="556.0" y="65"> a-z A-Z 0-9 _ - or non-ASCII</text>
           </g>
           <path d="M414.0 61a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
           <path d="M678.0 91a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M434.0 91h88.0"></path>
            <path d="M590.0 91h88.0"></path>
            <rect height="22" width="68" x="522.0" y="80"></rect>
            <text x="556.0" y="95"> escape</text>
           </g>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M414.0 110h284"></path>
          </g>
         </g>
        </g>
        <path d="M 728 61 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="function-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#function-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token" id="ref-for-typedef-function-token-2">&lt;function-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 273 62" width="273">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M174 31h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M174.0 31h0.0"></path>
         <rect height="22" width="124" x="50.0" y="20"></rect>
         <text x="112.0" y="35"> &lt;ident-token&gt;</text>
        </g>
        <path d="M184 31h10"></path>
        <path d="M222 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M194 31h0.0"></path>
         <path d="M222.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="194.0" y="20"></rect>
         <text x="208.0" y="35"> (</text>
        </g>
        <path d="M 232 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="at-keyword-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#at-keyword-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token" id="ref-for-typedef-at-keyword-token-3">&lt;at-keyword-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 273 62" width="273">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M78 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M78.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="50.0" y="20"></rect>
         <text x="64.0" y="35"> @</text>
        </g>
        <path d="M88 31h10"></path>
        <path d="M222 31h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M98 31h0.0"></path>
         <path d="M222.0 31h0.0"></path>
         <rect height="22" width="124" x="98.0" y="20"></rect>
         <text x="160.0" y="35"> &lt;ident-token&gt;</text>
        </g>
        <path d="M 232 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="hash-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#hash-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-hash-token" id="ref-for-typedef-hash-token-2">&lt;hash-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="100" viewBox="0 0 453 100" width="453">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M78 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M78.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="50.0" y="20"></rect>
         <text x="64.0" y="35"> #</text>
        </g>
        <path d="M88 31h10"></path>
        <path d="M402 31h10"></path>
        <g data-type="oneormore" data-updown="11 49">
         <path d="M98 31h0.0"></path>
         <path d="M402.0 31h0.0"></path>
         <path d="M98.0 31h10"></path>
         <path d="M392.0 31h10"></path>
         <path d="M108.0 31a10 10 0 0 0 -10 10v29a10 10 0 0 0 10 10"></path>
         <path d="M392.0 80a10 10 0 0 0 10 -10v-29a10 10 0 0 0 -10 -10"></path>
         <g data-type="choice" data-updown="11 41">
          <path d="M108.0 31h0.0"></path>
          <path d="M392.0 31h0.0"></path>
          <path d="M108.0 31h20"></path>
          <path d="M372.0 31h20"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M128.0 31h0.0"></path>
           <path d="M372.0 31h0.0"></path>
           <rect height="22" width="244" x="128.0" y="20"></rect>
           <text x="250.0" y="35"> a-z A-Z 0-9 _ - or non-ASCII</text>
          </g>
          <path d="M108.0 31a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
          <path d="M372.0 61a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M128.0 61h88.0"></path>
           <path d="M284.0 61h88.0"></path>
           <rect height="22" width="68" x="216.0" y="50"></rect>
           <text x="250.0" y="65"> escape</text>
          </g>
         </g>
         <g data-type="skip" data-updown="0 0">
          <path d="M108.0 80h284"></path>
         </g>
        </g>
        <path d="M 412 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="string-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#string-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-string-token" id="ref-for-typedef-string-token-2">&lt;string-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="248" viewBox="0 0 481 248" width="481">
       <g transform="translate(.5 .5)">
        <path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <g data-type="choice" data-updown="21 187">
         <path d="M40 41h0.0"></path>
         <path d="M440.0 41h0.0"></path>
         <path d="M40.0 41h20"></path>
         <path d="M420.0 41h20"></path>
         <g data-type="sequence" data-updown="21 79">
          <path d="M60.0 41h0.0"></path>
          <path d="M420.0 41h0.0"></path>
          <path d="M60.0 41h10"></path>
          <path d="M98.0 41h10"></path>
          <g data-type="terminal" data-updown="11 11">
           <path d="M70.0 41h0.0"></path>
           <path d="M98.0 41h0.0"></path>
           <rect height="22" rx="10" ry="10" width="28" x="70.0" y="30"></rect>
           <text x="84.0" y="45"> "</text>
          </g>
          <g data-type="choice" data-updown="21 79">
           <path d="M108.0 41h0.0"></path>
           <path d="M372.0 41h0.0"></path>
           <path d="M108.0 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
           <path d="M352.0 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
           <g data-type="skip" data-updown="0 0">
            <path d="M128.0 21h224"></path>
           </g>
           <path d="M108.0 41h20"></path>
           <path d="M352.0 41h20"></path>
           <g data-type="oneormore" data-updown="11 79">
            <path d="M128.0 41h0.0"></path>
            <path d="M352.0 41h0.0"></path>
            <path d="M128.0 41h10"></path>
            <path d="M342.0 41h10"></path>
            <path d="M138.0 41a10 10 0 0 0 -10 10v59a10 10 0 0 0 10 10"></path>
            <path d="M342.0 120a10 10 0 0 0 10 -10v-59a10 10 0 0 0 -10 -10"></path>
            <g data-type="choice" data-updown="11 71">
             <path d="M138.0 41h0.0"></path>
             <path d="M342.0 41h0.0"></path>
             <path d="M138.0 41h20"></path>
             <path d="M322.0 41h20"></path>
             <g data-type="non-terminal" data-updown="11 11">
              <path d="M158.0 41h0.0"></path>
              <path d="M322.0 41h0.0"></path>
              <rect height="22" width="164" x="158.0" y="30"></rect>
              <text x="240.0" y="45"> not " \ or newline</text>
             </g>
             <path d="M138.0 41a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
             <path d="M322.0 71a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
             <g data-type="non-terminal" data-updown="11 11">
              <path d="M158.0 71h48.0"></path>
              <path d="M274.0 71h48.0"></path>
              <rect height="22" width="68" x="206.0" y="60"></rect>
              <text x="240.0" y="75"> escape</text>
             </g>
             <path d="M138.0 41a10 10 0 0 1 10 10v40a10 10 0 0 0 10 10"></path>
             <path d="M322.0 101a10 10 0 0 0 10 -10v-40a10 10 0 0 1 10 -10"></path>
             <g data-type="sequence" data-updown="11 11">
              <path d="M158.0 101h10.0"></path>
              <path d="M312.0 101h10.0"></path>
              <path d="M168.0 101h10"></path>
              <path d="M206.0 101h10"></path>
              <g data-type="terminal" data-updown="11 11">
               <path d="M178.0 101h0.0"></path>
               <path d="M206.0 101h0.0"></path>
               <rect height="22" rx="10" ry="10" width="28" x="178.0" y="90"></rect>
               <text x="192.0" y="105"> \</text>
              </g>
              <path d="M216.0 101h10"></path>
              <path d="M302.0 101h10"></path>
              <g data-type="non-terminal" data-updown="11 11">
               <path d="M226.0 101h0.0"></path>
               <path d="M302.0 101h0.0"></path>
               <rect height="22" width="76" x="226.0" y="90"></rect>
               <text x="264.0" y="105"> newline</text>
              </g>
             </g>
            </g>
            <g data-type="skip" data-updown="0 0">
             <path d="M138.0 120h204"></path>
            </g>
           </g>
          </g>
          <path d="M372.0 41h10"></path>
          <path d="M410.0 41h10"></path>
          <g data-type="terminal" data-updown="11 11">
           <path d="M382.0 41h0.0"></path>
           <path d="M410.0 41h0.0"></path>
           <rect height="22" rx="10" ry="10" width="28" x="382.0" y="30"></rect>
           <text x="396.0" y="45"> "</text>
          </g>
         </g>
         <path d="M40.0 41a10 10 0 0 1 10 10v88a10 10 0 0 0 10 10"></path>
         <path d="M420.0 149a10 10 0 0 0 10 -10v-88a10 10 0 0 1 10 -10"></path>
         <g data-type="sequence" data-updown="21 79">
          <path d="M60.0 149h0.0"></path>
          <path d="M420.0 149h0.0"></path>
          <path d="M60.0 149h10"></path>
          <path d="M98.0 149h10"></path>
          <g data-type="terminal" data-updown="11 11">
           <path d="M70.0 149h0.0"></path>
           <path d="M98.0 149h0.0"></path>
           <rect height="22" rx="10" ry="10" width="28" x="70.0" y="138"></rect>
           <text x="84.0" y="153"> '</text>
          </g>
          <g data-type="choice" data-updown="21 79">
           <path d="M108.0 149h0.0"></path>
           <path d="M372.0 149h0.0"></path>
           <path d="M108.0 149a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
           <path d="M352.0 129a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
           <g data-type="skip" data-updown="0 0">
            <path d="M128.0 129h224"></path>
           </g>
           <path d="M108.0 149h20"></path>
           <path d="M352.0 149h20"></path>
           <g data-type="oneormore" data-updown="11 79">
            <path d="M128.0 149h0.0"></path>
            <path d="M352.0 149h0.0"></path>
            <path d="M128.0 149h10"></path>
            <path d="M342.0 149h10"></path>
            <path d="M138.0 149a10 10 0 0 0 -10 10v59a10 10 0 0 0 10 10"></path>
            <path d="M342.0 228a10 10 0 0 0 10 -10v-59a10 10 0 0 0 -10 -10"></path>
            <g data-type="choice" data-updown="11 71">
             <path d="M138.0 149h0.0"></path>
             <path d="M342.0 149h0.0"></path>
             <path d="M138.0 149h20"></path>
             <path d="M322.0 149h20"></path>
             <g data-type="non-terminal" data-updown="11 11">
              <path d="M158.0 149h0.0"></path>
              <path d="M322.0 149h0.0"></path>
              <rect height="22" width="164" x="158.0" y="138"></rect>
              <text x="240.0" y="153"> not ' \ or newline</text>
             </g>
             <path d="M138.0 149a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
             <path d="M322.0 179a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
             <g data-type="non-terminal" data-updown="11 11">
              <path d="M158.0 179h48.0"></path>
              <path d="M274.0 179h48.0"></path>
              <rect height="22" width="68" x="206.0" y="168"></rect>
              <text x="240.0" y="183"> escape</text>
             </g>
             <path d="M138.0 149a10 10 0 0 1 10 10v40a10 10 0 0 0 10 10"></path>
             <path d="M322.0 209a10 10 0 0 0 10 -10v-40a10 10 0 0 1 10 -10"></path>
             <g data-type="sequence" data-updown="11 11">
              <path d="M158.0 209h10.0"></path>
              <path d="M312.0 209h10.0"></path>
              <path d="M168.0 209h10"></path>
              <path d="M206.0 209h10"></path>
              <g data-type="terminal" data-updown="11 11">
               <path d="M178.0 209h0.0"></path>
               <path d="M206.0 209h0.0"></path>
               <rect height="22" rx="10" ry="10" width="28" x="178.0" y="198"></rect>
               <text x="192.0" y="213"> \</text>
              </g>
              <path d="M216.0 209h10"></path>
              <path d="M302.0 209h10"></path>
              <g data-type="non-terminal" data-updown="11 11">
               <path d="M226.0 209h0.0"></path>
               <path d="M302.0 209h0.0"></path>
               <rect height="22" width="76" x="226.0" y="198"></rect>
               <text x="264.0" y="213"> newline</text>
              </g>
             </g>
            </g>
            <g data-type="skip" data-updown="0 0">
             <path d="M138.0 228h204"></path>
            </g>
           </g>
          </g>
          <path d="M372.0 149h10"></path>
          <path d="M410.0 149h10"></path>
          <g data-type="terminal" data-updown="11 11">
           <path d="M382.0 149h0.0"></path>
           <path d="M410.0 149h0.0"></path>
           <rect height="22" rx="10" ry="10" width="28" x="382.0" y="138"></rect>
           <text x="396.0" y="153"> '</text>
          </g>
         </g>
        </g>
        <path d="M 440 41 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="url-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#url-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-2">&lt;url-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="110" viewBox="0 0 881 110" width="881">
       <g transform="translate(.5 .5)">
        <path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 41h10"></path>
        <path d="M222 41h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M50 41h0.0"></path>
         <path d="M222.0 41h0.0"></path>
         <rect height="22" width="172" x="50.0" y="30"></rect>
         <text x="136.0" y="45"> &lt;ident-token "url"&gt;</text>
        </g>
        <path d="M232 41h10"></path>
        <path d="M270 41h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M242 41h0.0"></path>
         <path d="M270.0 41h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="242.0" y="30"></rect>
         <text x="256.0" y="45"> (</text>
        </g>
        <path d="M280 41h10"></path>
        <path d="M334 41h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M290 41h0.0"></path>
         <path d="M334.0 41h0.0"></path>
         <rect height="22" width="44" x="290.0" y="30"></rect>
         <text x="312.0" y="45"> ws*</text>
        </g>
        <g data-type="choice" data-updown="21 49">
         <path d="M344 41h0.0"></path>
         <path d="M728.0 41h0.0"></path>
         <path d="M344.0 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <path d="M708.0 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M364.0 21h344"></path>
         </g>
         <path d="M344.0 41h20"></path>
         <path d="M708.0 41h20"></path>
         <g data-type="oneormore" data-updown="11 49">
          <path d="M364.0 41h0.0"></path>
          <path d="M708.0 41h0.0"></path>
          <path d="M364.0 41h10"></path>
          <path d="M698.0 41h10"></path>
          <path d="M374.0 41a10 10 0 0 0 -10 10v29a10 10 0 0 0 10 10"></path>
          <path d="M698.0 90a10 10 0 0 0 10 -10v-29a10 10 0 0 0 -10 -10"></path>
          <g data-type="choice" data-updown="11 41">
           <path d="M374.0 41h0.0"></path>
           <path d="M698.0 41h0.0"></path>
           <path d="M374.0 41h20"></path>
           <path d="M678.0 41h20"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M394.0 41h0.0"></path>
            <path d="M678.0 41h0.0"></path>
            <rect height="22" width="284" x="394.0" y="30"></rect>
            <text x="536.0" y="45"> not " ' ( ) \ ws or non-printable</text>
           </g>
           <path d="M374.0 41a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
           <path d="M678.0 71a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M394.0 71h108.0"></path>
            <path d="M570.0 71h108.0"></path>
            <rect height="22" width="68" x="502.0" y="60"></rect>
            <text x="536.0" y="75"> escape</text>
           </g>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M374.0 90h324"></path>
          </g>
         </g>
        </g>
        <path d="M728 41h10"></path>
        <path d="M782 41h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M738 41h0.0"></path>
         <path d="M782.0 41h0.0"></path>
         <rect height="22" width="44" x="738.0" y="30"></rect>
         <text x="760.0" y="45"> ws*</text>
        </g>
        <path d="M792 41h10"></path>
        <path d="M830 41h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M802 41h0.0"></path>
         <path d="M830.0 41h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="802.0" y="30"></rect>
         <text x="816.0" y="45"> )</text>
        </g>
        <path d="M 840 41 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="number-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#number-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token" id="ref-for-typedef-number-token-3">&lt;number-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="179" viewBox="0 0 713 179" width="713">
       <g transform="translate(.5 .5)">
        <path d="M 20 50 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <g data-type="choice" data-updown="40 40">
         <path d="M40 60h0.0"></path>
         <path d="M108.0 60h0.0"></path>
         <path d="M40.0 60a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <path d="M88.0 40a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <g data-type="terminal" data-updown="11 11">
          <path d="M60.0 40h0.0"></path>
          <path d="M88.0 40h0.0"></path>
          <rect height="22" rx="10" ry="10" width="28" x="60.0" y="29"></rect>
          <text x="74.0" y="44"> +</text>
         </g>
         <path d="M40.0 60h20"></path>
         <path d="M88.0 60h20"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M60.0 60h28"></path>
         </g>
         <path d="M40.0 60a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <path d="M88.0 80a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <g data-type="terminal" data-updown="11 11">
          <path d="M60.0 80h0.0"></path>
          <path d="M88.0 80h0.0"></path>
          <rect height="22" rx="10" ry="10" width="28" x="60.0" y="69"></rect>
          <text x="74.0" y="84"> -</text>
         </g>
        </g>
        <g data-type="choice" data-updown="11 98">
         <path d="M108 60h0.0"></path>
         <path d="M396.0 60h0.0"></path>
         <path d="M108.0 60h20"></path>
         <path d="M376.0 60h20"></path>
         <g data-type="sequence" data-updown="11 20">
          <path d="M128.0 60h0.0"></path>
          <path d="M376.0 60h0.0"></path>
          <path d="M128.0 60h10"></path>
          <path d="M218.0 60h10"></path>
          <g data-type="oneormore" data-updown="11 20">
           <path d="M138.0 60h0.0"></path>
           <path d="M218.0 60h0.0"></path>
           <path d="M138.0 60h10"></path>
           <path d="M208.0 60h10"></path>
           <path d="M148.0 60a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
           <path d="M208.0 80a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M148.0 60h0.0"></path>
            <path d="M208.0 60h0.0"></path>
            <rect height="22" width="60" x="148.0" y="49"></rect>
            <text x="178.0" y="64"> digit</text>
           </g>
           <g data-type="skip" data-updown="0 0">
            <path d="M148.0 80h60"></path>
           </g>
          </g>
          <path d="M228.0 60h10"></path>
          <path d="M266.0 60h10"></path>
          <g data-type="terminal" data-updown="11 11">
           <path d="M238.0 60h0.0"></path>
           <path d="M266.0 60h0.0"></path>
           <rect height="22" rx="10" ry="10" width="28" x="238.0" y="49"></rect>
           <text x="252.0" y="64"> .</text>
          </g>
          <path d="M276.0 60h10"></path>
          <path d="M366.0 60h10"></path>
          <g data-type="oneormore" data-updown="11 20">
           <path d="M286.0 60h0.0"></path>
           <path d="M366.0 60h0.0"></path>
           <path d="M286.0 60h10"></path>
           <path d="M356.0 60h10"></path>
           <path d="M296.0 60a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
           <path d="M356.0 80a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M296.0 60h0.0"></path>
            <path d="M356.0 60h0.0"></path>
            <rect height="22" width="60" x="296.0" y="49"></rect>
            <text x="326.0" y="64"> digit</text>
           </g>
           <g data-type="skip" data-updown="0 0">
            <path d="M296.0 80h60"></path>
           </g>
          </g>
         </g>
         <path d="M108.0 60a10 10 0 0 1 10 10v19a10 10 0 0 0 10 10"></path>
         <path d="M376.0 99a10 10 0 0 0 10 -10v-19a10 10 0 0 1 10 -10"></path>
         <g data-type="oneormore" data-updown="11 20">
          <path d="M128.0 99h84.0"></path>
          <path d="M292.0 99h84.0"></path>
          <path d="M212.0 99h10"></path>
          <path d="M282.0 99h10"></path>
          <path d="M222.0 99a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
          <path d="M282.0 119a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M222.0 99h0.0"></path>
           <path d="M282.0 99h0.0"></path>
           <rect height="22" width="60" x="222.0" y="88"></rect>
           <text x="252.0" y="103"> digit</text>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M222.0 119h60"></path>
          </g>
         </g>
         <path d="M108.0 60a10 10 0 0 1 10 10v58a10 10 0 0 0 10 10"></path>
         <path d="M376.0 138a10 10 0 0 0 10 -10v-58a10 10 0 0 1 10 -10"></path>
         <g data-type="sequence" data-updown="11 20">
          <path d="M128.0 138h50.0"></path>
          <path d="M326.0 138h50.0"></path>
          <path d="M178.0 138h10"></path>
          <path d="M216.0 138h10"></path>
          <g data-type="terminal" data-updown="11 11">
           <path d="M188.0 138h0.0"></path>
           <path d="M216.0 138h0.0"></path>
           <rect height="22" rx="10" ry="10" width="28" x="188.0" y="127"></rect>
           <text x="202.0" y="142"> .</text>
          </g>
          <path d="M226.0 138h10"></path>
          <path d="M316.0 138h10"></path>
          <g data-type="oneormore" data-updown="11 20">
           <path d="M236.0 138h0.0"></path>
           <path d="M316.0 138h0.0"></path>
           <path d="M236.0 138h10"></path>
           <path d="M306.0 138h10"></path>
           <path d="M246.0 138a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
           <path d="M306.0 158a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M246.0 138h0.0"></path>
            <path d="M306.0 138h0.0"></path>
            <rect height="22" width="60" x="246.0" y="127"></rect>
            <text x="276.0" y="142"> digit</text>
           </g>
           <g data-type="skip" data-updown="0 0">
            <path d="M246.0 158h60"></path>
           </g>
          </g>
         </g>
        </g>
        <g data-type="choice" data-updown="10 99">
         <path d="M396 60h0.0"></path>
         <path d="M672.0 60h0.0"></path>
         <path d="M396.0 60h20"></path>
         <path d="M652.0 60h20"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M416.0 60h236"></path>
         </g>
         <path d="M396.0 60a10 10 0 0 1 10 10v28a10 10 0 0 0 10 10"></path>
         <path d="M652.0 108a10 10 0 0 0 10 -10v-28a10 10 0 0 1 10 -10"></path>
         <g data-type="sequence" data-updown="40 41">
          <path d="M416.0 108h0.0"></path>
          <path d="M652.0 108h0.0"></path>
          <g data-type="choice" data-updown="11 41">
           <path d="M416.0 108h0.0"></path>
           <path d="M484.0 108h0.0"></path>
           <path d="M416.0 108h20"></path>
           <path d="M464.0 108h20"></path>
           <g data-type="terminal" data-updown="11 11">
            <path d="M436.0 108h0.0"></path>
            <path d="M464.0 108h0.0"></path>
            <rect height="22" rx="10" ry="10" width="28" x="436.0" y="97"></rect>
            <text x="450.0" y="112"> e</text>
           </g>
           <path d="M416.0 108a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
           <path d="M464.0 138a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
           <g data-type="terminal" data-updown="11 11">
            <path d="M436.0 138h0.0"></path>
            <path d="M464.0 138h0.0"></path>
            <rect height="22" rx="10" ry="10" width="28" x="436.0" y="127"></rect>
            <text x="450.0" y="142"> E</text>
           </g>
          </g>
          <g data-type="choice" data-updown="40 40">
           <path d="M484.0 108h0.0"></path>
           <path d="M552.0 108h0.0"></path>
           <path d="M484.0 108a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
           <path d="M532.0 88a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
           <g data-type="terminal" data-updown="11 11">
            <path d="M504.0 88h0.0"></path>
            <path d="M532.0 88h0.0"></path>
            <rect height="22" rx="10" ry="10" width="28" x="504.0" y="77"></rect>
            <text x="518.0" y="92"> +</text>
           </g>
           <path d="M484.0 108h20"></path>
           <path d="M532.0 108h20"></path>
           <g data-type="skip" data-updown="0 0">
            <path d="M504.0 108h28"></path>
           </g>
           <path d="M484.0 108a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
           <path d="M532.0 128a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
           <g data-type="terminal" data-updown="11 11">
            <path d="M504.0 128h0.0"></path>
            <path d="M532.0 128h0.0"></path>
            <rect height="22" rx="10" ry="10" width="28" x="504.0" y="117"></rect>
            <text x="518.0" y="132"> -</text>
           </g>
          </g>
          <path d="M552.0 108h10"></path>
          <path d="M642.0 108h10"></path>
          <g data-type="oneormore" data-updown="11 20">
           <path d="M562.0 108h0.0"></path>
           <path d="M642.0 108h0.0"></path>
           <path d="M562.0 108h10"></path>
           <path d="M632.0 108h10"></path>
           <path d="M572.0 108a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
           <path d="M632.0 128a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M572.0 108h0.0"></path>
            <path d="M632.0 108h0.0"></path>
            <rect height="22" width="60" x="572.0" y="97"></rect>
            <text x="602.0" y="112"> digit</text>
           </g>
           <g data-type="skip" data-updown="0 0">
            <path d="M572.0 128h60"></path>
           </g>
          </g>
         </g>
        </g>
        <path d="M 672 60 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="dimension-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#dimension-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-4">&lt;dimension-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 377 62" width="377">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M182 31h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M182.0 31h0.0"></path>
         <rect height="22" width="132" x="50.0" y="20"></rect>
         <text x="116.0" y="35"> &lt;number-token&gt;</text>
        </g>
        <path d="M192 31h10"></path>
        <path d="M326 31h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M202 31h0.0"></path>
         <path d="M326.0 31h0.0"></path>
         <rect height="22" width="124" x="202.0" y="20"></rect>
         <text x="264.0" y="35"> &lt;ident-token&gt;</text>
        </g>
        <path d="M 336 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="percentage-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#percentage-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-percentage-token" id="ref-for-typedef-percentage-token-2">&lt;percentage-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 281 62" width="281">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M182 31h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M182.0 31h0.0"></path>
         <rect height="22" width="132" x="50.0" y="20"></rect>
         <text x="116.0" y="35"> &lt;number-token&gt;</text>
        </g>
        <path d="M192 31h10"></path>
        <path d="M230 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M202 31h0.0"></path>
         <path d="M230.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="202.0" y="20"></rect>
         <text x="216.0" y="35"> %</text>
        </g>
        <path d="M 240 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="include-match-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#include-match-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-include-match-token" id="ref-for-typedef-include-match-token-1">&lt;include-match-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 137 62" width="137">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M86 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M86.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="36" x="50.0" y="20"></rect>
         <text x="68.0" y="35"> ~=</text>
        </g>
        <path d="M 96 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="dash-match-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#dash-match-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dash-match-token" id="ref-for-typedef-dash-match-token-1">&lt;dash-match-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 137 62" width="137">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M86 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M86.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="36" x="50.0" y="20"></rect>
         <text x="68.0" y="35"> |=</text>
        </g>
        <path d="M 96 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="prefix-match-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#prefix-match-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-prefix-match-token" id="ref-for-typedef-prefix-match-token-1">&lt;prefix-match-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 137 62" width="137">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M86 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M86.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="36" x="50.0" y="20"></rect>
         <text x="68.0" y="35"> ^=</text>
        </g>
        <path d="M 96 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="suffix-match-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#suffix-match-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-suffix-match-token" id="ref-for-typedef-suffix-match-token-1">&lt;suffix-match-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 137 62" width="137">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M86 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M86.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="36" x="50.0" y="20"></rect>
         <text x="68.0" y="35"> $=</text>
        </g>
        <path d="M 96 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="substring-match-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#substring-match-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-substring-match-token" id="ref-for-typedef-substring-match-token-1">&lt;substring-match-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 137 62" width="137">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M86 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M86.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="36" x="50.0" y="20"></rect>
         <text x="68.0" y="35"> *=</text>
        </g>
        <path d="M 96 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="column-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#column-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-column-token" id="ref-for-typedef-column-token-1">&lt;column-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 137 62" width="137">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M86 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M86.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="36" x="50.0" y="20"></rect>
         <text x="68.0" y="35"> ||</text>
        </g>
        <path d="M 96 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="CDO-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#CDO-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-cdo-token" id="ref-for-typedef-cdo-token-1">&lt;CDO-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 153 62" width="153">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M102 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M102.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="52" x="50.0" y="20"></rect>
         <text x="76.0" y="35"> &lt;!--</text>
        </g>
        <path d="M 112 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="CDC-token-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#CDC-token-diagram"></a><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-cdc-token" id="ref-for-typedef-cdc-token-1">&lt;CDC-token&gt;</a> 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 145 62" width="145">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M94 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M94.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="44" x="50.0" y="20"></rect>
         <text x="72.0" y="35"> --&gt;</text>
        </g>
        <path d="M 104 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
   </dd></dl>
   <h3 class="heading settled" data-level="4.2" id="tokenizer-definitions"><span class="secno">4.2. </span><span class="content"> Definitions</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#tokenizer-definitions"></a></h3>
   <p>This section defines several terms used during the tokenization phase.</p>
   <dl>
    <dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="code-point">code point</dfn> 
    </dt><dd> A <a href="http://unicode.org/glossary/#code_point">Unicode code point</a>. <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-unicode">[UNICODE]</a> Any value in the Unicode codespace; that is, the range of integers from 0 to (hexadecimal) 10FFFF. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="next-input-code-point">next input code point</dfn> 
    </dt><dd> The first <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-25">code point</a> in the input stream that has not yet been consumed. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="current-input-code-point">current input code point</dfn> 
    </dt><dd> The last <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-26">code point</a> to have been consumed. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="reconsume-the-current-input-code-point">reconsume the current input code point</dfn> 
    </dt><dd> Push the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-1">current input code point</a> back onto the front of the input stream,
			so that the next time you are instructed to consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-1">next input code point</a>,
			it will instead reconsume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-2">current input code point</a>. 
    </dd><dt><dfn data-dfn-type="dfn" data-export="" id="eof-code-point">EOF code point<a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#eof-code-point"></a></dfn> 
    </dt><dd> A conceptual <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-27">code point</a> representing the end of the input stream.
			Whenever the input stream is empty,
			the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-2">next input code point</a> is always an EOF code point. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="digit">digit</dfn> 
    </dt><dd> A <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-28">code point</a> between U+0030 DIGIT ZERO (0) and U+0039 DIGIT NINE (9). 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="hex-digit">hex digit</dfn> 
    </dt><dd> A <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-1">digit</a>,
			or a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-29">code point</a> between U+0041 LATIN CAPITAL LETTER A (A) and U+0046 LATIN CAPITAL LETTER F (F),
			or a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-30">code point</a> between U+0061 LATIN SMALL LETTER A (a) and U+0066 LATIN SMALL LETTER F (f). 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="uppercase-letter">uppercase letter</dfn> 
    </dt><dd> A <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-31">code point</a> between U+0041 LATIN CAPITAL LETTER A (A) and U+005A LATIN CAPITAL LETTER Z (Z). 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="lowercase-letter">lowercase letter</dfn> 
    </dt><dd> A <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-32">code point</a> between U+0061 LATIN SMALL LETTER A (a) and U+007A LATIN SMALL LETTER Z (z). 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="letter">letter</dfn> 
    </dt><dd> An <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#uppercase-letter" id="ref-for-uppercase-letter-1">uppercase letter</a> or a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#lowercase-letter" id="ref-for-lowercase-letter-1">lowercase letter</a>. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="non-ascii-code-point">non-ASCII code point</dfn> 
    </dt><dd> A <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-33">code point</a> with a value equal to or greater than U+0080 &lt;control&gt;. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="name-start-code-point">name-start code point</dfn> 
    </dt><dd> A <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#letter" id="ref-for-letter-1">letter</a>,
			a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#non-ascii-code-point" id="ref-for-non-ascii-code-point-1">non-ASCII code point</a>,
			or U+005F LOW LINE (_). 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="name-code-point">name code point</dfn> 
    </dt><dd> A <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#name-start-code-point" id="ref-for-name-start-code-point-1">name-start code point</a>,
			a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-2">digit</a>,
			or U+002D HYPHEN-MINUS (-). 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="non-printable-code-point">non-printable code point</dfn> 
    </dt><dd> A <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-34">code point</a> between U+0000 NULL and U+0008 BACKSPACE,
			or U+000B LINE TABULATION,
			or a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-35">code point</a> between U+000E SHIFT OUT and U+001F INFORMATION SEPARATOR ONE,
			or U+007F DELETE. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="newline">newline</dfn> 
    </dt><dd> U+000A LINE FEED. <span class="note" role="note"> Note that U+000D CARRIAGE RETURN and U+000C FORM FEED are not included in this definition,
				as they are converted to U+000A LINE FEED during <a href="https://drafts.csswg.org/css-syntax-3/#input-preprocessing">preprocessing</a>. </span> 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="whitespace">whitespace</dfn> 
    </dt><dd>A <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#newline" id="ref-for-newline-2">newline</a>, U+0009 CHARACTER TABULATION, or U+0020 SPACE. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="surrogate-code-point">surrogate code point</dfn> 
    </dt><dd> A <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-36">code point</a> between U+D800 and U+DFFF inclusive. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="maximum-allowed-code-point">maximum allowed code point</dfn> 
    </dt><dd>The greatest <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-37">code point</a> defined by Unicode: U+10FFFF. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="identifier">identifier</dfn> 
    </dt><dd> A portion of the CSS source that has the same syntax as an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-3">&lt;ident-token&gt;</a>.
			Also appears in <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token" id="ref-for-typedef-at-keyword-token-4">&lt;at-keyword-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token" id="ref-for-typedef-function-token-3">&lt;function-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-hash-token" id="ref-for-typedef-hash-token-3">&lt;hash-token&gt;</a> with the "id" type flag,
			and the unit of <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-5">&lt;dimension-token&gt;</a>. 
   </dd></dl>
   <h3 class="heading settled" data-level="4.3" id="tokenizer-algorithms"><span class="secno">4.3. </span><span class="content"> Tokenizer Algorithms</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#tokenizer-algorithms"></a></h3>
   <p>The algorithms defined in this section transform a stream of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-38">code points</a> into a stream of tokens.</p>
   <h4 class="heading settled" data-level="4.3.1" id="consume-token"><span class="secno">4.3.1. </span><span class="content"> Consume a token</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-token"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-a-token">consume a token</dfn> from a stream of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-39">code points</a>.
	It will return a single token of any type.</p>
   <p><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-comments" id="ref-for-consume-comments-1">Consume comments</a>.</p>
   <p>Consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-3">next input code point</a>.</p>
   <dl>
    <dt><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#whitespace" id="ref-for-whitespace-2">whitespace</a> 
    </dt><dd> Consume as much <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#whitespace" id="ref-for-whitespace-3">whitespace</a> as possible.
			Return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-2">&lt;whitespace-token&gt;</a>. 
    </dd><dt>U+0022 QUOTATION MARK (") 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-string-token" id="ref-for-consume-a-string-token-1">Consume a string token</a> and return it. 
    </dd><dt>U+0023 NUMBER SIGN (#) 
    </dt><dd>
      If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-4">next input code point</a> is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#name-code-point" id="ref-for-name-code-point-1">name code point</a> or the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-5">next two input code points</a> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-two-code-points-are-a-valid-escape" id="ref-for-check-if-two-code-points-are-a-valid-escape-1">are a valid escape</a>,
			then: 
     <ol>
      <li> Create a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-hash-token" id="ref-for-typedef-hash-token-4">&lt;hash-token&gt;</a>. 
      </li><li> If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-6">next 3 input code points</a> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-an-identifier" id="ref-for-check-if-three-code-points-would-start-an-identifier-1">would start an identifier</a>,
					set the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-hash-token" id="ref-for-typedef-hash-token-5">&lt;hash-token&gt;</a>’s type flag to "id". 
      </li><li> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-name" id="ref-for-consume-a-name-1">Consume a name</a>,
					and set the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-hash-token" id="ref-for-typedef-hash-token-6">&lt;hash-token&gt;</a>’s value to the returned string. 
      </li><li> Return the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-hash-token" id="ref-for-typedef-hash-token-7">&lt;hash-token&gt;</a>. 
     </li></ol>
     <p>Otherwise,
			return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-2">&lt;delim-token&gt;</a> with its value set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-3">current input code point</a>.</p>
    </dd><dt>U+0024 DOLLAR SIGN ($) 
    </dt><dd>
      If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-7">next input code point</a> is
			U+003D EQUALS SIGN (=),
			consume it
			and return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-suffix-match-token" id="ref-for-typedef-suffix-match-token-2">&lt;suffix-match-token&gt;</a>. 
     <p>Otherwise,
			emit a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-3">&lt;delim-token&gt;</a> with its value set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-4">current input code point</a>.</p>
    </dd><dt>U+0027 APOSTROPHE (') 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-string-token" id="ref-for-consume-a-string-token-2">Consume a string token</a> and return it. 
    </dd><dt>U+0028 LEFT PARENTHESIS (() 
    </dt><dd> Return a <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-paren" id="ref-for-tokendef-open-paren-1">&lt;(-token&gt;</a>. 
    </dd><dt>U+0029 RIGHT PARENTHESIS ()) 
    </dt><dd> Return a <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-paren" id="ref-for-tokendef-close-paren-1">&lt;)-token&gt;</a>. 
    </dd><dt>U+002A ASTERISK (*) 
    </dt><dd>
      If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-8">next input code point</a> is
			U+003D EQUALS SIGN (=),
			consume it
			and return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-substring-match-token" id="ref-for-typedef-substring-match-token-2">&lt;substring-match-token&gt;</a>. 
     <p>Otherwise,
			return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-4">&lt;delim-token&gt;</a> with its value set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-5">current input code point</a>.</p>
    </dd><dt>U+002B PLUS SIGN (+) 
    </dt><dd>
      If the input stream <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-a-number" id="ref-for-check-if-three-code-points-would-start-a-number-1">starts with a number</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-code-point" id="ref-for-reconsume-the-current-input-code-point-1">reconsume the current input code point</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-numeric-token" id="ref-for-consume-a-numeric-token-1">consume a numeric token</a> and return it. 
     <p>Otherwise,
			return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-5">&lt;delim-token&gt;</a> with its value set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-6">current input code point</a>.</p>
    </dd><dt>U+002C COMMA (,) 
    </dt><dd> Return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-comma-token" id="ref-for-typedef-comma-token-1">&lt;comma-token&gt;</a>. 
    </dd><dt>U+002D HYPHEN-MINUS (-) 
    </dt><dd>
      If the input stream <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-a-number" id="ref-for-check-if-three-code-points-would-start-a-number-2">starts with a number</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-code-point" id="ref-for-reconsume-the-current-input-code-point-2">reconsume the current input code point</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-numeric-token" id="ref-for-consume-a-numeric-token-2">consume a numeric token</a>,
			and return it. 
     <p>Otherwise,
			if the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-9">next 2 input code points</a> are
			U+002D HYPHEN-MINUS
			U+003E GREATER-THAN SIGN
			(-&gt;),
			consume them
			and return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-cdc-token" id="ref-for-typedef-cdc-token-2">&lt;CDC-token&gt;</a>.</p>
     <p>Otherwise,
			if the input stream <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-an-identifier" id="ref-for-check-if-three-code-points-would-start-an-identifier-2">starts with an identifier</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-code-point" id="ref-for-reconsume-the-current-input-code-point-3">reconsume the current input code point</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-an-ident-like-token" id="ref-for-consume-an-ident-like-token-1">consume an ident-like token</a>,
			and return it.</p>
     <p>Otherwise,
			return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-6">&lt;delim-token&gt;</a> with its value set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-7">current input code point</a>.</p>
    </dd><dt>U+002E FULL STOP (.) 
    </dt><dd>
      If the input stream <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-a-number" id="ref-for-check-if-three-code-points-would-start-a-number-3">starts with a number</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-code-point" id="ref-for-reconsume-the-current-input-code-point-4">reconsume the current input code point</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-numeric-token" id="ref-for-consume-a-numeric-token-3">consume a numeric token</a>,
			and return it. 
     <p>Otherwise,
			return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-7">&lt;delim-token&gt;</a> with its value set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-8">current input code point</a>.</p>
    </dd><dt>U+003A COLON (:) 
    </dt><dd> Return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-colon-token" id="ref-for-typedef-colon-token-1">&lt;colon-token&gt;</a>. 
    </dd><dt>U+003B SEMICOLON (;) 
    </dt><dd> Return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-semicolon-token" id="ref-for-typedef-semicolon-token-2">&lt;semicolon-token&gt;</a>. 
    </dd><dt>U+003C LESS-THAN SIGN (&lt;) 
    </dt><dd>
      If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-10">next 3 input code points</a> are
			U+0021 EXCLAMATION MARK
			U+002D HYPHEN-MINUS
			U+002D HYPHEN-MINUS
			(!--),
			consume them
			and return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-cdo-token" id="ref-for-typedef-cdo-token-2">&lt;CDO-token&gt;</a>. 
     <p>Otherwise,
			return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-8">&lt;delim-token&gt;</a> with its value set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-9">current input code point</a>.</p>
    </dd><dt>U+0040 COMMERCIAL AT (@) 
    </dt><dd>
      If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-11">next 3 input code points</a> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-an-identifier" id="ref-for-check-if-three-code-points-would-start-an-identifier-3">would start an identifier</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-name" id="ref-for-consume-a-name-2">consume a name</a>,
			create an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token" id="ref-for-typedef-at-keyword-token-5">&lt;at-keyword-token&gt;</a> with its value set to the returned value,
			and return it. 
     <p>Otherwise,
			return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-9">&lt;delim-token&gt;</a> with its value set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-10">current input code point</a>.</p>
    </dd><dt>U+005B LEFT SQUARE BRACKET ([) 
    </dt><dd> Return a <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-square" id="ref-for-tokendef-open-square-1">&lt;[-token&gt;</a>. 
    </dd><dt>U+005C REVERSE SOLIDUS (\) 
    </dt><dd>
      If the input stream <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-two-code-points-are-a-valid-escape" id="ref-for-check-if-two-code-points-are-a-valid-escape-2">starts with a valid escape</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-code-point" id="ref-for-reconsume-the-current-input-code-point-5">reconsume the current input code point</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-an-ident-like-token" id="ref-for-consume-an-ident-like-token-2">consume an ident-like token</a>,
			and return it. 
     <p>Otherwise,
			this is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-1">parse error</a>.
			Return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-10">&lt;delim-token&gt;</a> with its value set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-11">current input code point</a>.</p>
    </dd><dt>U+005D RIGHT SQUARE BRACKET (]) 
    </dt><dd> Return a <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-square" id="ref-for-tokendef-close-square-1">&lt;]-token&gt;</a>. 
    </dd><dt>U+005E CIRCUMFLEX ACCENT (^) 
    </dt><dd>
      If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-12">next input code point</a> is
			U+003D EQUALS SIGN (=),
			consume it
			and return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-prefix-match-token" id="ref-for-typedef-prefix-match-token-2">&lt;prefix-match-token&gt;</a>. 
     <p>Otherwise,
			return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-11">&lt;delim-token&gt;</a> with its value set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-12">current input code point</a>.</p>
    </dd><dt>U+007B LEFT CURLY BRACKET ({) 
    </dt><dd> Return a <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-curly" id="ref-for-tokendef-open-curly-2">&lt;{-token&gt;</a>. 
    </dd><dt>U+007D RIGHT CURLY BRACKET (}) 
    </dt><dd> Return a <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-curly" id="ref-for-tokendef-close-curly-2">&lt;}-token&gt;</a>. 
    </dd><dt><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-3">digit</a> 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-code-point" id="ref-for-reconsume-the-current-input-code-point-6">Reconsume the current input code point</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-numeric-token" id="ref-for-consume-a-numeric-token-4">consume a numeric token</a>,
			and return it. 
    </dd><dt><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#name-start-code-point" id="ref-for-name-start-code-point-2">name-start code point</a> 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-code-point" id="ref-for-reconsume-the-current-input-code-point-7">Reconsume the current input code point</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-an-ident-like-token" id="ref-for-consume-an-ident-like-token-3">consume an ident-like token</a>,
			and return it. 
    </dd><dt>U+007C VERTICAL LINE (|) 
    </dt><dd>
      If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-13">next input code point</a> is
			U+003D EQUALS SIGN (=),
			consume it
			and return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dash-match-token" id="ref-for-typedef-dash-match-token-2">&lt;dash-match-token&gt;</a>. 
     <p>Otherwise,
			if the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-14">next input code point</a> is
			U+007C VERTICAL LINE (|),
			consume it
			and return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-column-token" id="ref-for-typedef-column-token-2">&lt;column-token&gt;</a>.</p>
     <p>Otherwise,
			return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-12">&lt;delim-token&gt;</a> with its value set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-13">current input code point</a>.</p>
    </dd><dt>U+007E TILDE (~) 
    </dt><dd>
      If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-15">next input code point</a> is
			U+003D EQUALS SIGN (=),
			consume it
			and return an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-include-match-token" id="ref-for-typedef-include-match-token-2">&lt;include-match-token&gt;</a>. 
     <p>Otherwise,
			return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-13">&lt;delim-token&gt;</a> with its value set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-14">current input code point</a>.</p>
    </dd><dt>EOF 
    </dt><dd> Return an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-2">&lt;EOF-token&gt;</a>. 
    </dd><dt>anything else 
    </dt><dd> Return a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-14">&lt;delim-token&gt;</a> with its value set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-15">current input code point</a>. 
   </dd></dl>
   <h4 class="heading settled" data-level="4.3.2" id="consume-comment"><span class="secno">4.3.2. </span><span class="content"> Consume comments</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-comment"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-comments">consume comments</dfn> from a stream of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-40">code points</a>.
	It returns nothing.</p>
   <p>If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-16">next two input code point</a> are
	U+002F SOLIDUS (/) followed by a U+002A ASTERISK (*),
	consume them
	and all following <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-41">code points</a> up to and including
	the first U+002A ASTERISK (*) followed by a U+002F SOLIDUS (/),
	or up to an EOF code point.
	Return to the start of this step.</p>
   <p>If the preceding paragraph ended by consuming an EOF code point,
	this is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-2">parse error</a>.</p>
   <p>Return nothing.</p>
   <h4 class="heading settled" data-level="4.3.3" id="consume-numeric-token"><span class="secno">4.3.3. </span><span class="content"> Consume a numeric token</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-numeric-token"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-a-numeric-token">consume a numeric token</dfn> from a stream of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-42">code points</a>.
	It returns either a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token" id="ref-for-typedef-number-token-4">&lt;number-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-percentage-token" id="ref-for-typedef-percentage-token-3">&lt;percentage-token&gt;</a>, or <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-6">&lt;dimension-token&gt;</a>.</p>
   <p><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-number" id="ref-for-consume-a-number-1">Consume a number</a>.</p>
   <p>If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-17">next 3 input code points</a> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-an-identifier" id="ref-for-check-if-three-code-points-would-start-an-identifier-4">would start an identifier</a>,
	then:</p>
   <ol>
    <li>Create a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-7">&lt;dimension-token&gt;</a> with the same representation, value, and type flag as the returned number,
			and a unit set initially to the empty string. 
    </li><li><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-name" id="ref-for-consume-a-name-3">Consume a name</a>.
			Set the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-8">&lt;dimension-token&gt;</a>’s unit to the returned value. 
    </li><li>Return the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-9">&lt;dimension-token&gt;</a>. 
   </li></ol>
   <p>Otherwise,
	if the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-18">next input code point</a> is U+0025 PERCENTAGE SIGN (%),
	consume it.
	Create a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-percentage-token" id="ref-for-typedef-percentage-token-4">&lt;percentage-token&gt;</a> with the same representation and value as the returned number,
	and return it.</p>
   <p>Otherwise,
	create a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token" id="ref-for-typedef-number-token-5">&lt;number-token&gt;</a> with the same representation, value, and type flag as the returned number,
	and return it.</p>
   <h4 class="heading settled" data-level="4.3.4" id="consume-ident-like-token"><span class="secno">4.3.4. </span><span class="content"> Consume an ident-like token</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-ident-like-token"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-an-ident-like-token">consume an ident-like token</dfn> from a stream of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-43">code points</a>.
	It returns an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-4">&lt;ident-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token" id="ref-for-typedef-function-token-4">&lt;function-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-3">&lt;url-token&gt;</a>, or <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-url-token" id="ref-for-typedef-bad-url-token-1">&lt;bad-url-token&gt;</a>.</p>
   <p><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-name" id="ref-for-consume-a-name-4">Consume a name</a>.</p>
   <p>If the returned string’s value is an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> match for "url",
	and the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-19">next input code point</a> is U+0028 LEFT PARENTHESIS ((),
	consume it.
	While the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-20">next two input code points</a> are <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#whitespace" id="ref-for-whitespace-4">whitespace</a>,
	consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-21">next input code point</a>.
	If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-22">next one or two input code points</a> are U+0022 QUOTATION MARK ("),
	U+0027 APOSTROPHE ('),
	or <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#whitespace" id="ref-for-whitespace-5">whitespace</a> followed by U+0022 QUOTATION MARK (") orU+0027 APOSTROPHE ('),
	then create a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token" id="ref-for-typedef-function-token-5">&lt;function-token&gt;</a> with its value set to the returned string
	and return it.
	Otherwise, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-url-token" id="ref-for-consume-a-url-token-1">consume a url token</a>,
	and return it.</p>
   <p>Otherwise,
	if the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-23">next input code point</a> is U+0028 LEFT PARENTHESIS ((),
	consume it.
	Create a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token" id="ref-for-typedef-function-token-6">&lt;function-token&gt;</a> with its value set to the returned string
	and return it.</p>
   <p>Otherwise,
	create an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-5">&lt;ident-token&gt;</a> with its value set to the returned string
	and return it.</p>
   <h4 class="heading settled" data-level="4.3.5" id="consume-string-token"><span class="secno">4.3.5. </span><span class="content"> Consume a string token</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-string-token"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-a-string-token">consume a string token</dfn> from a stream of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-44">code points</a>.
	It returns either a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-string-token" id="ref-for-typedef-string-token-3">&lt;string-token&gt;</a> or <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-string-token" id="ref-for-typedef-bad-string-token-1">&lt;bad-string-token&gt;</a>.</p>
   <p>This algorithm may be called with an <var>ending code point</var>,
	which denotes the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-45">code point</a> that ends the string.
	If an <var>ending code point</var> is not specified,
	the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-16">current input code point</a> is used.</p>
   <p>Initially create a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-string-token" id="ref-for-typedef-string-token-4">&lt;string-token&gt;</a> with its value set to the empty string.</p>
   <p>Repeatedly consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-24">next input code point</a> from the stream:</p>
   <dl>
    <dt><var>ending code point</var> 
    </dt><dd> Return the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-string-token" id="ref-for-typedef-string-token-5">&lt;string-token&gt;</a>. 
    </dd><dt>EOF 
    </dt><dd> This is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-3">parse error</a>.
			Return the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-string-token" id="ref-for-typedef-string-token-6">&lt;string-token&gt;</a>. 
    </dd><dt><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#newline" id="ref-for-newline-3">newline</a> 
    </dt><dd> This is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-4">parse error</a>. <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-code-point" id="ref-for-reconsume-the-current-input-code-point-8">Reconsume the current input code point</a>,
			create a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-string-token" id="ref-for-typedef-bad-string-token-2">&lt;bad-string-token&gt;</a>, and return it. 
    </dd><dt>U+005C REVERSE SOLIDUS (\) 
    </dt><dd>
      If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-25">next input code point</a> is EOF,
			this is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-5">parse error</a>;
			do nothing. 
     <p>Otherwise,
			if the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-26">next input code point</a> is a newline,
			consume it.</p>
     <p>Otherwise, <span class="note" role="note">(the stream <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-two-code-points-are-a-valid-escape" id="ref-for-check-if-two-code-points-are-a-valid-escape-3">starts with a valid escape</a>)</span> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-an-escaped-code-point" id="ref-for-consume-an-escaped-code-point-1">consume an escaped code point</a> and append the returned <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-46">code point</a> to the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-string-token" id="ref-for-typedef-string-token-7">&lt;string-token&gt;</a>’s value.</p>
    </dd><dt>anything else 
    </dt><dd> Append the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-17">current input code point</a> to the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-string-token" id="ref-for-typedef-string-token-8">&lt;string-token&gt;</a>’s value. 
   </dd></dl>
   <h4 class="heading settled" data-level="4.3.6" id="consume-url-token"><span class="secno">4.3.6. </span><span class="content"> Consume a url token</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-url-token"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-a-url-token">consume a url token</dfn> from a stream of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-47">code points</a>.
	It returns either a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-4">&lt;url-token&gt;</a> or a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-url-token" id="ref-for-typedef-bad-url-token-2">&lt;bad-url-token&gt;</a>.</p>
   <p class="note" role="note">Note: This algorithm assumes that the initial "url(" has already been consumed.</p>
   <ol>
    <li> Initially create a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-5">&lt;url-token&gt;</a> with its value set to the empty string. 
    </li><li> Consume as much <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#whitespace" id="ref-for-whitespace-6">whitespace</a> as possible. 
    </li><li> If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-27">next input code point</a> is EOF,
			this is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-6">parse error</a>.
			Return the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-6">&lt;url-token&gt;</a>. 
    </li><li>
      Repeatedly consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-28">next input code point</a> from the stream: 
     <dl>
      <dt>U+0029 RIGHT PARENTHESIS ()) 
      </dt><dd> Return the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-7">&lt;url-token&gt;</a>. 
      </dd><dt>EOF 
      </dt><dd> This is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-7">parse error</a>.
					Return the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-8">&lt;url-token&gt;</a>. 
      </dd><dt><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#whitespace" id="ref-for-whitespace-7">whitespace</a> 
      </dt><dd> Consume as much <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#whitespace" id="ref-for-whitespace-8">whitespace</a> as possible.
					If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-29">next input code point</a> is U+0029 RIGHT PARENTHESIS ()) or EOF,
					consume it and return the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-9">&lt;url-token&gt;</a> (if EOF was encountered, this is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-8">parse error</a>);
					otherwise, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-remnants-of-a-bad-url" id="ref-for-consume-the-remnants-of-a-bad-url-1">consume the remnants of a bad url</a>,
					create a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-url-token" id="ref-for-typedef-bad-url-token-3">&lt;bad-url-token&gt;</a>,
					and return it. 
      </dd><dt>U+0022 QUOTATION MARK (") 
      </dt><dt>U+0027 APOSTROPHE (') 
      </dt><dt>U+0028 LEFT PARENTHESIS (() 
      </dt><dt><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#non-printable-code-point" id="ref-for-non-printable-code-point-1">non-printable code point</a> 
      </dt><dd> This is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-9">parse error</a>. <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-remnants-of-a-bad-url" id="ref-for-consume-the-remnants-of-a-bad-url-2">Consume the remnants of a bad url</a>,
					create a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-url-token" id="ref-for-typedef-bad-url-token-4">&lt;bad-url-token&gt;</a>,
					and return it. 
      </dd><dt>U+005C REVERSE SOLIDUS 
      </dt><dd>
        If the stream <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-two-code-points-are-a-valid-escape" id="ref-for-check-if-two-code-points-are-a-valid-escape-4">starts with a valid escape</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-an-escaped-code-point" id="ref-for-consume-an-escaped-code-point-2">consume an escaped code point</a> and append the returned <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-48">code point</a> to the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-10">&lt;url-token&gt;</a>’s value. 
       <p>Otherwise,
					this is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-10">parse error</a>. <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-remnants-of-a-bad-url" id="ref-for-consume-the-remnants-of-a-bad-url-3">Consume the remnants of a bad url</a>,
					create a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-url-token" id="ref-for-typedef-bad-url-token-5">&lt;bad-url-token&gt;</a>,
					and return it.</p>
      </dd><dt>anything else 
      </dt><dd> Append the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-18">current input code point</a> to the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-11">&lt;url-token&gt;</a>’s value. 
     </dd></dl>
   </li></ol>
   <h4 class="heading settled" data-level="4.3.7" id="consume-escaped-code-point"><span class="secno">4.3.7. </span><span class="content"> Consume an escaped code point</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-escaped-code-point"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-an-escaped-code-point">consume an escaped code point</dfn>.
	It assumes that the U+005C REVERSE SOLIDUS (\) has already been consumed
	and that the next input code point has already been verified
	to not be a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#newline" id="ref-for-newline-4">newline</a>.
	It will return a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-49">code point</a>.</p>
   <p>Consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-30">next input code point</a>.</p>
   <dl>
    <dt><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#hex-digit" id="ref-for-hex-digit-3">hex digit</a> 
    </dt><dd> Consume as many <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#hex-digit" id="ref-for-hex-digit-4">hex digits</a> as possible, but no more than 5. <span class="note" role="note">Note that this means 1-6 hex digits have been consumed in total.</span> If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-31">next input code point</a> is <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#whitespace" id="ref-for-whitespace-9">whitespace</a>,
			consume it as well.
			Interpret the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#hex-digit" id="ref-for-hex-digit-5">hex digits</a> as a hexadecimal number.
			If this number is zero,
			or is for a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#surrogate-code-point" id="ref-for-surrogate-code-point-1">surrogate code point</a>,
			or is greater than the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#maximum-allowed-code-point" id="ref-for-maximum-allowed-code-point-1">maximum allowed code point</a>,
			return U+FFFD REPLACEMENT CHARACTER (�).
			Otherwise, return the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-50">code point</a> with that value. 
    </dd><dt>EOF code point 
    </dt><dd> This is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-11">parse error</a>.
			Return U+FFFD REPLACEMENT CHARACTER (�). 
    </dd><dt>anything else 
    </dt><dd> Return the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-19">current input code point</a>. 
   </dd></dl>
   <h4 class="heading settled" data-level="4.3.8" id="starts-with-a-valid-escape"><span class="secno">4.3.8. </span><span class="content"> Check if two code points are a valid escape</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#starts-with-a-valid-escape"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-lt="check if two code points are a valid escape|are a valid escape|starts with a valid escape" data-noexport="" id="check-if-two-code-points-are-a-valid-escape">check if two code points are a valid escape</dfn>.
	The algorithm described here can be called explicitly with two <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-51">code points</a>,
	or can be called with the input stream itself.
	In the latter case, the two <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-52">code points</a> in question are
	the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-20">current input code point</a> and the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-32">next input code point</a>,
	in that order.</p>
   <p class="note" role="note">Note: This algorithm will not consume any additional <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-53">code point</a>.</p>
   <p>If the first <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-54">code point</a> is not U+005C REVERSE SOLIDUS (\),
	return false.</p>
   <p>Otherwise,
	if the second <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-55">code point</a> is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#newline" id="ref-for-newline-5">newline</a>,
	return false.</p>
   <p>Otherwise, return true.</p>
   <h4 class="heading settled" data-level="4.3.9" id="would-start-an-identifier"><span class="secno">4.3.9. </span><span class="content"> Check if three code points would start an identifier</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#would-start-an-identifier"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-lt="check if three code points would start an identifier|starts with an identifier|start with an identifier|would start an identifier" data-noexport="" id="check-if-three-code-points-would-start-an-identifier">check if three code points would start an <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#identifier" id="ref-for-identifier-4">identifier</a></dfn>.
	The algorithm described here can be called explicitly with three <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-56">code points</a>,
	or can be called with the input stream itself.
	In the latter case, the three <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-57">code points</a> in question are
	the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-21">current input code point</a> and the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-33">next two input code points</a>,
	in that order.</p>
   <p class="note" role="note">Note: This algorithm will not consume any additional <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-58">code points</a>.</p>
   <p>Look at the first <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-59">code point</a>:</p>
   <dl>
    <dt>U+002D HYPHEN-MINUS 
    </dt><dd> If the second <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-60">code point</a> is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#name-start-code-point" id="ref-for-name-start-code-point-3">name-start code point</a> or a U+002D HYPHEN-MINUS,
			or the second and third <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-61">code points</a> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-two-code-points-are-a-valid-escape" id="ref-for-check-if-two-code-points-are-a-valid-escape-5">are a valid escape</a>,
			return true.
			Otherwise, return false. 
    </dd><dt><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#name-start-code-point" id="ref-for-name-start-code-point-4">name-start code point</a> 
    </dt><dd> Return true. 
    </dd><dt>U+005C REVERSE SOLIDUS (\) 
    </dt><dd> If the first and second <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-62">code points</a> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-two-code-points-are-a-valid-escape" id="ref-for-check-if-two-code-points-are-a-valid-escape-6">are a valid escape</a>,
			return true.
			Otherwise, return false. 
    </dd><dt>anything else 
    </dt><dd> Return false. 
   </dd></dl>
   <h4 class="heading settled" data-level="4.3.10" id="starts-with-a-number"><span class="secno">4.3.10. </span><span class="content"> Check if three code points would start a number</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#starts-with-a-number"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-lt="check if three code points would start a number|starts with a number|start with a number|would start a number" data-noexport="" id="check-if-three-code-points-would-start-a-number">check if three code points would start a number</dfn>.
	The algorithm described here can be called explicitly with three <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-63">code points</a>,
	or can be called with the input stream itself.
	In the latter case, the three <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-64">code points</a> in question are
	the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point" id="ref-for-current-input-code-point-22">current input code point</a> and the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-34">next two input code points</a>,
	in that order.</p>
   <p class="note" role="note">Note: This algorithm will not consume any additional <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-65">code points</a>.</p>
   <p>Look at the first <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-66">code point</a>:</p>
   <dl>
    <dt>U+002B PLUS SIGN (+) 
    </dt><dt>U+002D HYPHEN-MINUS (-) 
    </dt><dd>
      If the second <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-67">code point</a> is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-4">digit</a>,
			return true. 
     <p>Otherwise,
			if the second <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-68">code point</a> is a U+002E FULL STOP (.)
			and the third <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-69">code point</a> is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-5">digit</a>,
			return true.</p>
     <p>Otherwise, return false.</p>
    </dd><dt>U+002E FULL STOP (.) 
    </dt><dd> If the second <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-70">code point</a> is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-6">digit</a>,
			return true.
			Otherwise, return false. 
    </dd><dt><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-7">digit</a> 
    </dt><dd> Return true. 
    </dd><dt>anything else 
    </dt><dd> Return false. 
   </dd></dl>
   <h4 class="heading settled" data-level="4.3.11" id="consume-name"><span class="secno">4.3.11. </span><span class="content"> Consume a name</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-name"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-a-name">consume a name</dfn> from a stream of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-71">code points</a>.
	It returns a string containing
	the largest name that can be formed from adjacent <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-72">code points</a> in the stream, starting from the first.</p>
   <p class="note" role="note">Note: This algorithm does not do the verification of the first few <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-73">code points</a> that are necessary to ensure the returned <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-74">code points</a> would constitute an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-6">&lt;ident-token&gt;</a>.
	If that is the intended use,
	ensure that the stream <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-an-identifier" id="ref-for-check-if-three-code-points-would-start-an-identifier-5">starts with an identifier</a> before calling this algorithm.</p>
   <p>Let <var>result</var> initially be an empty string.</p>
   <p>Repeatedly consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-35">next input code point</a> from the stream:</p>
   <dl>
    <dt><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#name-code-point" id="ref-for-name-code-point-2">name code point</a> 
    </dt><dd> Append the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-75">code point</a> to <var>result</var>. 
    </dd><dt>the stream <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-two-code-points-are-a-valid-escape" id="ref-for-check-if-two-code-points-are-a-valid-escape-7">starts with a valid escape</a> 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-an-escaped-code-point" id="ref-for-consume-an-escaped-code-point-3">Consume an escaped code point</a>.
			Append the returned <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-76">code point</a> to <var>result</var>. 
    </dd><dt>anything else 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-code-point" id="ref-for-reconsume-the-current-input-code-point-9">Reconsume the current input code point</a>.
			Return <var>result</var>. 
   </dd></dl>
   <h4 class="heading settled" data-level="4.3.12" id="consume-number"><span class="secno">4.3.12. </span><span class="content"> Consume a number</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-number"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-a-number">consume a number</dfn> from a stream of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-77">code points</a>.
	It returns a 3-tuple of
	a string representation,
	a numeric value,
	and a type flag which is either "integer" or "number".</p>
   <p class="note" role="note">Note: This algorithm does not do the verification of the first few <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-78">code points</a> that are necessary to ensure a number can be obtained from the stream.
	Ensure that the stream <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-a-number" id="ref-for-check-if-three-code-points-would-start-a-number-4">starts with a number</a> before calling this algorithm.</p>
   <p>Execute the following steps in order:</p>
   <ol>
    <li> Initially set <var>repr</var> to the empty string
			and <var>type</var> to "integer". 
    </li><li> If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-36">next input code point</a> is U+002B PLUS SIGN (+) or U+002D HYPHEN-MINUS (-),
			consume it and append it to <var>repr</var>. 
    </li><li> While the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-37">next input code point</a> is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-8">digit</a>,
			consume it and append it to <var>repr</var>. 
    </li><li>
      If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-38">next 2 input code points</a> are
			U+002E FULL STOP (.) followed by a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-9">digit</a>,
			then: 
     <ol>
      <li>Consume them. 
      </li><li>Append them to <var>repr</var>. 
      </li><li>Set <var>type</var> to "number". 
      </li><li>While the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-39">next input code point</a> is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-10">digit</a>, consume it and append it to <var>repr</var>. 
     </li></ol>
    </li><li>
      If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-40">next 2 or 3 input code points</a> are
			U+0045 LATIN CAPITAL LETTER E (E) or U+0065 LATIN SMALL LETTER E (e),
			optionally followed by U+002D HYPHEN-MINUS (-) or U+002B PLUS SIGN (+),
			followed by a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-11">digit</a>,
			then: 
     <ol>
      <li>Consume them. 
      </li><li>Append them to <var>repr</var>. 
      </li><li>Set <var>type</var> to "number". 
      </li><li>While the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-41">next input code point</a> is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-12">digit</a>, consume it and append it to <var>repr</var>. 
     </li></ol>
    </li><li> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#convert-a-string-to-a-number" id="ref-for-convert-a-string-to-a-number-1">Convert <var>repr</var> to a number</a>,
			and set the <var>value</var> to the returned value. 
    </li><li> Return a 3-tuple of <var>repr</var>, <var>value</var>, and <var>type</var>. 
   </li></ol>
   <h4 class="heading settled" data-level="4.3.13" id="convert-string-to-number"><span class="secno">4.3.13. </span><span class="content"> Convert a string to a number</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#convert-string-to-number"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="convert-a-string-to-a-number">convert a string to a number</dfn>.
	It returns a number.</p>
   <p class="note" role="note">Note: This algorithm does not do any verification to ensure that the string contains only a number.
	Ensure that the string contains only a valid CSS number
	before calling this algorithm.</p>
   <p>Divide the string into seven components,
	in order from left to right:</p>
   <ol>
    <li>A <b>sign</b>:
			a single U+002B PLUS SIGN (+) or U+002D HYPHEN-MINUS (-),
			or the empty string.
			Let <var>s</var> be the number -1 if the sign is U+002D HYPHEN-MINUS (-);
			otherwise, let <var>s</var> be the number 1. 
    </li><li>An <b>integer part</b>:
			zero or more <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-13">digits</a>.
			If there is at least one digit,
			let <var>i</var> be the number formed by interpreting the digits as a base-10 integer;
			otherwise, let <var>i</var> be the number 0. 
    </li><li>A <b>decimal point</b>:
			a single U+002E FULL STOP (.),
			or the empty string. 
    </li><li>A <b>fractional part</b>:
			zero or more <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-14">digits</a>.
			If there is at least one digit,
			let <var>f</var> be the number formed by interpreting the digits as a base-10 integer
			and <var>d</var> be the number of digits;
			otherwise, let <var>f</var> and <var>d</var> be the number 0. 
    </li><li>An <b>exponent indicator</b>:
			a single U+0045 LATIN CAPITAL LETTER E (E) or U+0065 LATIN SMALL LETTER E (e),
			or the empty string. 
    </li><li>An <b>exponent sign</b>:
			a single U+002B PLUS SIGN (+) or U+002D HYPHEN-MINUS (-),
			or the empty string.
			Let <var>t</var> be the number -1 if the sign is U+002D HYPHEN-MINUS (-);
			otherwise, let <var>t</var> be the number 1. 
    </li><li>An <b>exponent</b>:
			zero or more <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-15">digits</a>.
			If there is at least one digit,
			let <var>e</var> be the number formed by interpreting the digits as a base-10 integer;
			otherwise, let <var>e</var> be the number 0. 
   </li></ol>
   <p>Return the number <code>s·(i + f·10<sup>-d</sup>)·10<sup>te</sup></code>.</p>
   <h4 class="heading settled" data-level="4.3.14" id="consume-remnants-of-bad-url"><span class="secno">4.3.14. </span><span class="content"> Consume the remnants of a bad url</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-remnants-of-bad-url"></a></h4>
   <p>This section describes how to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-the-remnants-of-a-bad-url">consume the remnants of a bad url</dfn> from a stream of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-79">code points</a>,
	"cleaning up" after the tokenizer realizes that it’s in the middle of a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-url-token" id="ref-for-typedef-bad-url-token-6">&lt;bad-url-token&gt;</a> rather than a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-12">&lt;url-token&gt;</a>.
	It returns nothing;
	its sole use is to consume enough of the input stream to reach a recovery point
	where normal tokenizing can resume.</p>
   <p>Repeatedly consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point" id="ref-for-next-input-code-point-42">next input code point</a> from the stream:</p>
   <dl>
    <dt>U+0029 RIGHT PARENTHESIS ()) 
    </dt><dt>EOF 
    </dt><dd> Return. 
    </dd><dt>the input stream <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#check-if-two-code-points-are-a-valid-escape" id="ref-for-check-if-two-code-points-are-a-valid-escape-8">starts with a valid escape</a> 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-an-escaped-code-point" id="ref-for-consume-an-escaped-code-point-4">Consume an escaped code point</a>. <span class="note" role="note">This allows an escaped right parenthesis ("\)") to be encountered without ending the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-url-token" id="ref-for-typedef-bad-url-token-7">&lt;bad-url-token&gt;</a>.
				This is otherwise identical to the "anything else" clause.</span> 
    </dd><dt>anything else 
    </dt><dd> Do nothing. 
   </dd></dl>
   <h2 class="heading settled" data-level="5" id="parsing"><span class="secno">5. </span><span class="content"> Parsing</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parsing"></a></h2>
   <p>The input to the parsing stage is a stream or list of tokens from the tokenization stage.
	The output depends on how the parser is invoked,
	as defined by the entry points listed later in this section.
	The parser output can consist of at-rules,
	qualified rules,
	and/or declarations.</p>
   <p>The parser’s output is constructed according to the fundamental syntax of CSS,
	without regards for the validity of any specific item.
	Implementations may check the validity of items as they are returned by the various parser algorithms
	and treat the algorithm as returning nothing if the item was invalid according to the implementation’s own grammar knowledge,
	or may construct a full tree as specified
	and "clean up" afterwards by removing any invalid items.</p>
   <p>The items that can appear in the tree are:</p>
   <dl>
    <dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="at-rule">at-rule</dfn> 
    </dt><dd>
      An at-rule has a name,
			a prelude consisting of a list of component values,
			and an optional block consisting of a simple {} block. 
     <p class="note" role="note">Note: This specification places no limits on what an at-rule’s block may contain.
			Individual at-rules must define whether they accept a block,
			and if so,
			how to parse it
			(preferably using one of the parser algorithms or entry points defined in this specification).</p>
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="qualified-rule">qualified rule</dfn> 
    </dt><dd>
      A qualified rule has
			a prelude consisting of a list of component values,
			and a block consisting of a simple {} block. 
     <p class="note" role="note">Note: Most qualified rules will be style rules,
			where the prelude is a selector <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-select">[SELECT]</a> and the block a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-list-of-declarations" id="ref-for-parse-a-list-of-declarations-1">list of declarations</a>.</p>
    </dd><dt><dfn data-dfn-type="dfn" data-export="" id="declaration">declaration<a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#declaration"></a></dfn> 
    </dt><dd>
      A declaration has a name,
			a value consisting of a list of component values,
			and an <var>important</var> flag which is initially unset. 
     <p>Declarations are further categorized as "properties" or "descriptors",
			with the former typically appearing in <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#qualified-rule" id="ref-for-qualified-rule-5">qualified rules</a> and the latter appearing in <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-12">at-rules</a>.
			(This categorization does not occur at the Syntax level;
			instead, it is a product of where the declaration appears,
			and is defined by the respective specifications defining the given rule.)</p>
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="component-value">component value</dfn> 
    </dt><dd> A component value is one of the preserved tokens,
			a function,
			or a simple block. 
    </dd><dt><dfn data-dfn-type="dfn" data-noexport="" id="preserved-tokens">preserved tokens<a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#preserved-tokens"></a></dfn> 
    </dt><dd>
      Any token produced by the tokenizer
			except for <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token" id="ref-for-typedef-function-token-7">&lt;function-token&gt;</a>s, <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-curly" id="ref-for-tokendef-open-curly-3">&lt;{-token&gt;</a>s, <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-paren" id="ref-for-tokendef-open-paren-2">&lt;(-token&gt;</a>s,
			and <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-square" id="ref-for-tokendef-open-square-2">&lt;[-token&gt;</a>s. 
     <p class="note" role="note">Note: The non-preserved tokens listed above are always consumed into higher-level objects,
			either functions or simple blocks,
			and so never appear in any parser output themselves.</p>
     <p class="note" role="note">Note: The tokens <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-curly" id="ref-for-tokendef-close-curly-3">&lt;}-token&gt;</a>s, <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-paren" id="ref-for-tokendef-close-paren-2">&lt;)-token&gt;</a>s, <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-square" id="ref-for-tokendef-close-square-2">&lt;]-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-string-token" id="ref-for-typedef-bad-string-token-3">&lt;bad-string-token&gt;</a>, and <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-url-token" id="ref-for-typedef-bad-url-token-8">&lt;bad-url-token&gt;</a> are always parse errors,
			but they are preserved in the token stream by this specification to allow other specs,
			such as Media Queries,
			to define more fine-grainted error-handling
			than just dropping an entire declaration or block.</p>
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="function">function</dfn> 
    </dt><dd> A function has a name
			and a value consisting of a list of component values. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="simple-block">simple block</dfn> 
    </dt><dd> A simple block has an associated token (either a <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-square" id="ref-for-tokendef-open-square-3">&lt;[-token&gt;</a>, <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-paren" id="ref-for-tokendef-open-paren-3">&lt;(-token&gt;</a>, or <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-curly" id="ref-for-tokendef-open-curly-4">&lt;{-token&gt;</a>)
			and a value consisting of a list of component values. 
   </dd></dl>
   <h3 class="heading settled" data-level="5.1" id="parser-diagrams"><span class="secno">5.1. </span><span class="content"> Parser Railroad Diagrams</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parser-diagrams"></a></h3>
   <p><em>This section is non-normative.</em></p>
   <p>This section presents an informative view of the parser,
	in the form of railroad diagrams.</p>
   <p>These diagrams are <em>informative</em> and <em>incomplete</em>;
	they describe the grammar of "correct" stylesheets,
	but do not describe error-handling at all.
	They are provided solely to make it easier to get an intuitive grasp of the syntax.</p>
   <dl>
    <dt id="stylesheet-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#stylesheet-diagram"></a>Stylesheet 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="200" viewBox="0 0 345 200" width="345">
       <g transform="translate(.5 .5)">
        <path d="M 20 121 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <g data-type="choice" data-updown="111 49">
         <path d="M40 131h0.0"></path>
         <path d="M304.0 131h0.0"></path>
         <path d="M40.0 131a10 10 0 0 0 10 -10v-89a10 10 0 0 1 10 -10"></path>
         <path d="M284.0 22a10 10 0 0 1 10 10v89a10 10 0 0 0 10 10"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M60.0 22h224"></path>
         </g>
         <path d="M40.0 131h20"></path>
         <path d="M284.0 131h20"></path>
         <g data-type="oneormore" data-updown="101 49">
          <path d="M60.0 131h0.0"></path>
          <path d="M284.0 131h0.0"></path>
          <path d="M60.0 131h10"></path>
          <path d="M274.0 131h10"></path>
          <path d="M70.0 131a10 10 0 0 0 -10 10v29a10 10 0 0 0 10 10"></path>
          <path d="M274.0 180a10 10 0 0 0 10 -10v-29a10 10 0 0 0 -10 -10"></path>
          <g data-type="choice" data-updown="101 41">
           <path d="M70.0 131h0.0"></path>
           <path d="M274.0 131h0.0"></path>
           <path d="M70.0 131a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
           <path d="M254.0 101a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M90.0 101h0.0"></path>
            <path d="M254.0 101h0.0"></path>
            <rect height="22" width="164" x="90.0" y="90"></rect>
            <text x="172.0" y="105"> &lt;whitespace-token&gt;</text>
           </g>
           <path d="M70.0 131a10 10 0 0 0 10 -10v-40a10 10 0 0 1 10 -10"></path>
           <path d="M254.0 71a10 10 0 0 1 10 10v40a10 10 0 0 0 10 10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M90.0 71h28.0"></path>
            <path d="M226.0 71h28.0"></path>
            <rect height="22" width="108" x="118.0" y="60"></rect>
            <text x="172.0" y="75"> &lt;CDC-token&gt;</text>
           </g>
           <path d="M70.0 131a10 10 0 0 0 10 -10v-70a10 10 0 0 1 10 -10"></path>
           <path d="M254.0 41a10 10 0 0 1 10 10v70a10 10 0 0 0 10 10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M90.0 41h28.0"></path>
            <path d="M226.0 41h28.0"></path>
            <rect height="22" width="108" x="118.0" y="30"></rect>
            <text x="172.0" y="45"> &lt;CDO-token&gt;</text>
           </g>
           <path d="M70.0 131h20"></path>
           <path d="M254.0 131h20"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M90.0 131h16.0"></path>
            <path d="M238.0 131h16.0"></path>
            <rect height="22" width="132" x="106.0" y="120"></rect>
            <text x="172.0" y="135"> Qualified rule</text>
           </g>
           <path d="M70.0 131a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
           <path d="M254.0 161a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M90.0 161h44.0"></path>
            <path d="M210.0 161h44.0"></path>
            <rect height="22" width="76" x="134.0" y="150"></rect>
            <text x="172.0" y="165"> At-rule</text>
           </g>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M70.0 180h204"></path>
          </g>
         </g>
        </g>
        <path d="M 304 131 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="rule-list-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#rule-list-diagram"></a>Rule list 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="140" viewBox="0 0 345 140" width="345">
       <g transform="translate(.5 .5)">
        <path d="M 20 61 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <g data-type="choice" data-updown="51 49">
         <path d="M40 71h0.0"></path>
         <path d="M304.0 71h0.0"></path>
         <path d="M40.0 71a10 10 0 0 0 10 -10v-29a10 10 0 0 1 10 -10"></path>
         <path d="M284.0 22a10 10 0 0 1 10 10v29a10 10 0 0 0 10 10"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M60.0 22h224"></path>
         </g>
         <path d="M40.0 71h20"></path>
         <path d="M284.0 71h20"></path>
         <g data-type="oneormore" data-updown="41 49">
          <path d="M60.0 71h0.0"></path>
          <path d="M284.0 71h0.0"></path>
          <path d="M60.0 71h10"></path>
          <path d="M274.0 71h10"></path>
          <path d="M70.0 71a10 10 0 0 0 -10 10v29a10 10 0 0 0 10 10"></path>
          <path d="M274.0 120a10 10 0 0 0 10 -10v-29a10 10 0 0 0 -10 -10"></path>
          <g data-type="choice" data-updown="41 41">
           <path d="M70.0 71h0.0"></path>
           <path d="M274.0 71h0.0"></path>
           <path d="M70.0 71a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
           <path d="M254.0 41a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M90.0 41h0.0"></path>
            <path d="M254.0 41h0.0"></path>
            <rect height="22" width="164" x="90.0" y="30"></rect>
            <text x="172.0" y="45"> &lt;whitespace-token&gt;</text>
           </g>
           <path d="M70.0 71h20"></path>
           <path d="M254.0 71h20"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M90.0 71h16.0"></path>
            <path d="M238.0 71h16.0"></path>
            <rect height="22" width="132" x="106.0" y="60"></rect>
            <text x="172.0" y="75"> Qualified rule</text>
           </g>
           <path d="M70.0 71a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
           <path d="M254.0 101a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M90.0 101h44.0"></path>
            <path d="M210.0 101h44.0"></path>
            <rect height="22" width="76" x="134.0" y="90"></rect>
            <text x="172.0" y="105"> At-rule</text>
           </g>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M70.0 120h204"></path>
          </g>
         </g>
        </g>
        <path d="M 304 71 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="at-rule-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#at-rule-diagram"></a>At-rule 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="102" viewBox="0 0 589 102" width="589">
       <g transform="translate(.5 .5)">
        <path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 41h10"></path>
        <path d="M214 41h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M50 41h0.0"></path>
         <path d="M214.0 41h0.0"></path>
         <rect height="22" width="164" x="50.0" y="30"></rect>
         <text x="132.0" y="45"> &lt;at-keyword-token&gt;</text>
        </g>
        <g data-type="choice" data-updown="21 20">
         <path d="M224 41h0.0"></path>
         <path d="M424.0 41h0.0"></path>
         <path d="M224.0 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <path d="M404.0 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M244.0 21h160"></path>
         </g>
         <path d="M224.0 41h20"></path>
         <path d="M404.0 41h20"></path>
         <g data-type="oneormore" data-updown="11 20">
          <path d="M244.0 41h0.0"></path>
          <path d="M404.0 41h0.0"></path>
          <path d="M244.0 41h10"></path>
          <path d="M394.0 41h10"></path>
          <path d="M254.0 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
          <path d="M394.0 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M254.0 41h0.0"></path>
           <path d="M394.0 41h0.0"></path>
           <rect height="22" width="140" x="254.0" y="30"></rect>
           <text x="324.0" y="45"> Component value</text>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M254.0 61h140"></path>
          </g>
         </g>
        </g>
        <g data-type="choice" data-updown="11 41">
         <path d="M424 41h0.0"></path>
         <path d="M548.0 41h0.0"></path>
         <path d="M424.0 41h20"></path>
         <path d="M528.0 41h20"></path>
         <g data-type="non-terminal" data-updown="11 11">
          <path d="M444.0 41h0.0"></path>
          <path d="M528.0 41h0.0"></path>
          <rect height="22" width="84" x="444.0" y="30"></rect>
          <text x="486.0" y="45"> {} block</text>
         </g>
         <path d="M424.0 41a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
         <path d="M528.0 71a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
         <g data-type="terminal" data-updown="11 11">
          <path d="M444.0 71h28.0"></path>
          <path d="M500.0 71h28.0"></path>
          <rect height="22" rx="10" ry="10" width="28" x="472.0" y="60"></rect>
          <text x="486.0" y="75"> ;</text>
         </g>
        </g>
        <path d="M 548 41 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="qualified-rule-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#qualified-rule-diagram"></a>Qualified rule 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="81" viewBox="0 0 385 81" width="385">
       <g transform="translate(.5 .5)">
        <path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <g data-type="choice" data-updown="21 20">
         <path d="M40 41h0.0"></path>
         <path d="M240.0 41h0.0"></path>
         <path d="M40.0 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <path d="M220.0 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M60.0 21h160"></path>
         </g>
         <path d="M40.0 41h20"></path>
         <path d="M220.0 41h20"></path>
         <g data-type="oneormore" data-updown="11 20">
          <path d="M60.0 41h0.0"></path>
          <path d="M220.0 41h0.0"></path>
          <path d="M60.0 41h10"></path>
          <path d="M210.0 41h10"></path>
          <path d="M70.0 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
          <path d="M210.0 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M70.0 41h0.0"></path>
           <path d="M210.0 41h0.0"></path>
           <rect height="22" width="140" x="70.0" y="30"></rect>
           <text x="140.0" y="45"> Component value</text>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M70.0 61h140"></path>
          </g>
         </g>
        </g>
        <path d="M240 41h10"></path>
        <path d="M334 41h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M250 41h0.0"></path>
         <path d="M334.0 41h0.0"></path>
         <rect height="22" width="84" x="250.0" y="30"></rect>
         <text x="292.0" y="45"> {} block</text>
        </g>
        <path d="M 344 41 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="declaration-list-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#declaration-list-diagram"></a>Declaration list 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="102" viewBox="0 0 589 102" width="589">
       <g transform="translate(.5 .5)">
        <path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 41h10"></path>
        <path d="M94 41h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M50 41h0.0"></path>
         <path d="M94.0 41h0.0"></path>
         <rect height="22" width="44" x="50.0" y="30"></rect>
         <text x="72.0" y="45"> ws*</text>
        </g>
        <g data-type="choice" data-updown="21 41">
         <path d="M104 41h0.0"></path>
         <path d="M548.0 41h0.0"></path>
         <path d="M104.0 41h20"></path>
         <path d="M528.0 41h20"></path>
         <g data-type="sequence" data-updown="21 11">
          <path d="M124.0 41h0.0"></path>
          <path d="M528.0 41h0.0"></path>
          <g data-type="choice" data-updown="21 11">
           <path d="M124.0 41h0.0"></path>
           <path d="M272.0 41h0.0"></path>
           <path d="M124.0 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
           <path d="M252.0 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
           <g data-type="skip" data-updown="0 0">
            <path d="M144.0 21h108"></path>
           </g>
           <path d="M124.0 41h20"></path>
           <path d="M252.0 41h20"></path>
           <g data-type="non-terminal" data-updown="11 11">
            <path d="M144.0 41h0.0"></path>
            <path d="M252.0 41h0.0"></path>
            <rect height="22" width="108" x="144.0" y="30"></rect>
            <text x="198.0" y="45"> Declaration</text>
           </g>
          </g>
          <g data-type="choice" data-updown="21 11">
           <path d="M272.0 41h0.0"></path>
           <path d="M528.0 41h0.0"></path>
           <path d="M272.0 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
           <path d="M508.0 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
           <g data-type="skip" data-updown="0 0">
            <path d="M292.0 21h216"></path>
           </g>
           <path d="M272.0 41h20"></path>
           <path d="M508.0 41h20"></path>
           <g data-type="sequence" data-updown="11 11">
            <path d="M292.0 41h0.0"></path>
            <path d="M508.0 41h0.0"></path>
            <path d="M292.0 41h10"></path>
            <path d="M330.0 41h10"></path>
            <g data-type="terminal" data-updown="11 11">
             <path d="M302.0 41h0.0"></path>
             <path d="M330.0 41h0.0"></path>
             <rect height="22" rx="10" ry="10" width="28" x="302.0" y="30"></rect>
             <text x="316.0" y="45"> ;</text>
            </g>
            <path d="M340.0 41h10"></path>
            <path d="M498.0 41h10"></path>
            <g data-type="non-terminal" data-updown="11 11">
             <path d="M350.0 41h0.0"></path>
             <path d="M498.0 41h0.0"></path>
             <rect height="22" width="148" x="350.0" y="30"></rect>
             <text x="424.0" y="45"> Declaration list</text>
            </g>
           </g>
          </g>
         </g>
         <path d="M104.0 41a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
         <path d="M528.0 71a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
         <g data-type="sequence" data-updown="11 11">
          <path d="M124.0 71h70.0"></path>
          <path d="M458.0 71h70.0"></path>
          <path d="M194.0 71h10"></path>
          <path d="M280.0 71h10"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M204.0 71h0.0"></path>
           <path d="M280.0 71h0.0"></path>
           <rect height="22" width="76" x="204.0" y="60"></rect>
           <text x="242.0" y="75"> At-rule</text>
          </g>
          <path d="M290.0 71h10"></path>
          <path d="M448.0 71h10"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M300.0 71h0.0"></path>
           <path d="M448.0 71h0.0"></path>
           <rect height="22" width="148" x="300.0" y="60"></rect>
           <text x="374.0" y="75"> Declaration list</text>
          </g>
         </g>
        </g>
        <path d="M 548 41 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="declaration-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#declaration-diagram"></a>Declaration 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="101" viewBox="0 0 677 101" width="677">
       <g transform="translate(.5 .5)">
        <path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 41h10"></path>
        <path d="M174 41h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M50 41h0.0"></path>
         <path d="M174.0 41h0.0"></path>
         <rect height="22" width="124" x="50.0" y="30"></rect>
         <text x="112.0" y="45"> &lt;ident-token&gt;</text>
        </g>
        <path d="M184 41h10"></path>
        <path d="M238 41h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M194 41h0.0"></path>
         <path d="M238.0 41h0.0"></path>
         <rect height="22" width="44" x="194.0" y="30"></rect>
         <text x="216.0" y="45"> ws*</text>
        </g>
        <path d="M248 41h10"></path>
        <path d="M286 41h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M258 41h0.0"></path>
         <path d="M286.0 41h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="258.0" y="30"></rect>
         <text x="272.0" y="45"> :</text>
        </g>
        <g data-type="choice" data-updown="21 20">
         <path d="M296 41h0.0"></path>
         <path d="M496.0 41h0.0"></path>
         <path d="M296.0 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <path d="M476.0 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M316.0 21h160"></path>
         </g>
         <path d="M296.0 41h20"></path>
         <path d="M476.0 41h20"></path>
         <g data-type="oneormore" data-updown="11 20">
          <path d="M316.0 41h0.0"></path>
          <path d="M476.0 41h0.0"></path>
          <path d="M316.0 41h10"></path>
          <path d="M466.0 41h10"></path>
          <path d="M326.0 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
          <path d="M466.0 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M326.0 41h0.0"></path>
           <path d="M466.0 41h0.0"></path>
           <rect height="22" width="140" x="326.0" y="30"></rect>
           <text x="396.0" y="45"> Component value</text>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M326.0 61h140"></path>
          </g>
         </g>
        </g>
        <g data-type="choice" data-updown="10 40">
         <path d="M496 41h0.0"></path>
         <path d="M636.0 41h0.0"></path>
         <path d="M496.0 41h20"></path>
         <path d="M616.0 41h20"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M516.0 41h100"></path>
         </g>
         <path d="M496.0 41a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <path d="M616.0 61a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <g data-type="non-terminal" data-updown="11 11">
          <path d="M516.0 61h0.0"></path>
          <path d="M616.0 61h0.0"></path>
          <rect height="22" width="100" x="516.0" y="50"></rect>
          <text x="566.0" y="65"> !important</text>
         </g>
        </g>
        <path d="M 636 41 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="!important-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#%21important-diagram"></a>!important 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="62" viewBox="0 0 497 62" width="497">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 31h10"></path>
        <path d="M78 31h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 31h0.0"></path>
         <path d="M78.0 31h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="50.0" y="20"></rect>
         <text x="64.0" y="35"> !</text>
        </g>
        <path d="M88 31h10"></path>
        <path d="M142 31h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M98 31h0.0"></path>
         <path d="M142.0 31h0.0"></path>
         <rect height="22" width="44" x="98.0" y="20"></rect>
         <text x="120.0" y="35"> ws*</text>
        </g>
        <path d="M152 31h10"></path>
        <path d="M382 31h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M162 31h0.0"></path>
         <path d="M382.0 31h0.0"></path>
         <rect height="22" width="220" x="162.0" y="20"></rect>
         <text x="272.0" y="35"> &lt;ident-token "important"&gt;</text>
        </g>
        <path d="M392 31h10"></path>
        <path d="M446 31h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M402 31h0.0"></path>
         <path d="M446.0 31h0.0"></path>
         <rect height="22" width="44" x="402.0" y="20"></rect>
         <text x="424.0" y="35"> ws*</text>
        </g>
        <path d="M 456 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="component-value-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#component-value-diagram"></a>Component value 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="182" viewBox="0 0 261 182" width="261">
       <g transform="translate(.5 .5)">
        <path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <g data-type="choice" data-updown="11 131">
         <path d="M40 31h0.0"></path>
         <path d="M220.0 31h0.0"></path>
         <path d="M40.0 31h20"></path>
         <path d="M200.0 31h20"></path>
         <g data-type="non-terminal" data-updown="11 11">
          <path d="M60.0 31h0.0"></path>
          <path d="M200.0 31h0.0"></path>
          <rect height="22" width="140" x="60.0" y="20"></rect>
          <text x="130.0" y="35"> Preserved token</text>
         </g>
         <path d="M40.0 31a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
         <path d="M200.0 61a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
         <g data-type="non-terminal" data-updown="11 11">
          <path d="M60.0 61h28.0"></path>
          <path d="M172.0 61h28.0"></path>
          <rect height="22" width="84" x="88.0" y="50"></rect>
          <text x="130.0" y="65"> {} block</text>
         </g>
         <path d="M40.0 31a10 10 0 0 1 10 10v40a10 10 0 0 0 10 10"></path>
         <path d="M200.0 91a10 10 0 0 0 10 -10v-40a10 10 0 0 1 10 -10"></path>
         <g data-type="non-terminal" data-updown="11 11">
          <path d="M60.0 91h28.0"></path>
          <path d="M172.0 91h28.0"></path>
          <rect height="22" width="84" x="88.0" y="80"></rect>
          <text x="130.0" y="95"> () block</text>
         </g>
         <path d="M40.0 31a10 10 0 0 1 10 10v70a10 10 0 0 0 10 10"></path>
         <path d="M200.0 121a10 10 0 0 0 10 -10v-70a10 10 0 0 1 10 -10"></path>
         <g data-type="non-terminal" data-updown="11 11">
          <path d="M60.0 121h28.0"></path>
          <path d="M172.0 121h28.0"></path>
          <rect height="22" width="84" x="88.0" y="110"></rect>
          <text x="130.0" y="125"> [] block</text>
         </g>
         <path d="M40.0 31a10 10 0 0 1 10 10v100a10 10 0 0 0 10 10"></path>
         <path d="M200.0 151a10 10 0 0 0 10 -10v-100a10 10 0 0 1 10 -10"></path>
         <g data-type="non-terminal" data-updown="11 11">
          <path d="M60.0 151h4.0"></path>
          <path d="M196.0 151h4.0"></path>
          <rect height="22" width="132" x="64.0" y="140"></rect>
          <text x="130.0" y="155"> Function block</text>
         </g>
        </g>
        <path d="M 220 31 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="{}-block-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#%7B%7D-block-diagram"></a>{} block 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="81" viewBox="0 0 377 81" width="377">
       <g transform="translate(.5 .5)">
        <path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 41h10"></path>
        <path d="M78 41h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 41h0.0"></path>
         <path d="M78.0 41h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="50.0" y="30"></rect>
         <text x="64.0" y="45"> {</text>
        </g>
        <g data-type="choice" data-updown="21 20">
         <path d="M88 41h0.0"></path>
         <path d="M288.0 41h0.0"></path>
         <path d="M88.0 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <path d="M268.0 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M108.0 21h160"></path>
         </g>
         <path d="M88.0 41h20"></path>
         <path d="M268.0 41h20"></path>
         <g data-type="oneormore" data-updown="11 20">
          <path d="M108.0 41h0.0"></path>
          <path d="M268.0 41h0.0"></path>
          <path d="M108.0 41h10"></path>
          <path d="M258.0 41h10"></path>
          <path d="M118.0 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
          <path d="M258.0 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M118.0 41h0.0"></path>
           <path d="M258.0 41h0.0"></path>
           <rect height="22" width="140" x="118.0" y="30"></rect>
           <text x="188.0" y="45"> Component value</text>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M118.0 61h140"></path>
          </g>
         </g>
        </g>
        <path d="M288 41h10"></path>
        <path d="M326 41h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M298 41h0.0"></path>
         <path d="M326.0 41h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="298.0" y="30"></rect>
         <text x="312.0" y="45"> }</text>
        </g>
        <path d="M 336 41 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="()-block-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#%28%29-block-diagram"></a>() block 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="81" viewBox="0 0 377 81" width="377">
       <g transform="translate(.5 .5)">
        <path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 41h10"></path>
        <path d="M78 41h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 41h0.0"></path>
         <path d="M78.0 41h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="50.0" y="30"></rect>
         <text x="64.0" y="45"> (</text>
        </g>
        <g data-type="choice" data-updown="21 20">
         <path d="M88 41h0.0"></path>
         <path d="M288.0 41h0.0"></path>
         <path d="M88.0 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <path d="M268.0 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M108.0 21h160"></path>
         </g>
         <path d="M88.0 41h20"></path>
         <path d="M268.0 41h20"></path>
         <g data-type="oneormore" data-updown="11 20">
          <path d="M108.0 41h0.0"></path>
          <path d="M268.0 41h0.0"></path>
          <path d="M108.0 41h10"></path>
          <path d="M258.0 41h10"></path>
          <path d="M118.0 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
          <path d="M258.0 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M118.0 41h0.0"></path>
           <path d="M258.0 41h0.0"></path>
           <rect height="22" width="140" x="118.0" y="30"></rect>
           <text x="188.0" y="45"> Component value</text>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M118.0 61h140"></path>
          </g>
         </g>
        </g>
        <path d="M288 41h10"></path>
        <path d="M326 41h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M298 41h0.0"></path>
         <path d="M326.0 41h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="298.0" y="30"></rect>
         <text x="312.0" y="45"> )</text>
        </g>
        <path d="M 336 41 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="[]-block-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#%5B%5D-block-diagram"></a>[] block 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="81" viewBox="0 0 377 81" width="377">
       <g transform="translate(.5 .5)">
        <path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 41h10"></path>
        <path d="M78 41h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M50 41h0.0"></path>
         <path d="M78.0 41h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="50.0" y="30"></rect>
         <text x="64.0" y="45"> [</text>
        </g>
        <g data-type="choice" data-updown="21 20">
         <path d="M88 41h0.0"></path>
         <path d="M288.0 41h0.0"></path>
         <path d="M88.0 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <path d="M268.0 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M108.0 21h160"></path>
         </g>
         <path d="M88.0 41h20"></path>
         <path d="M268.0 41h20"></path>
         <g data-type="oneormore" data-updown="11 20">
          <path d="M108.0 41h0.0"></path>
          <path d="M268.0 41h0.0"></path>
          <path d="M108.0 41h10"></path>
          <path d="M258.0 41h10"></path>
          <path d="M118.0 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
          <path d="M258.0 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M118.0 41h0.0"></path>
           <path d="M258.0 41h0.0"></path>
           <rect height="22" width="140" x="118.0" y="30"></rect>
           <text x="188.0" y="45"> Component value</text>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M118.0 61h140"></path>
          </g>
         </g>
        </g>
        <path d="M288 41h10"></path>
        <path d="M326 41h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M298 41h0.0"></path>
         <path d="M326.0 41h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="298.0" y="30"></rect>
         <text x="312.0" y="45"> ]</text>
        </g>
        <path d="M 336 41 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
    </dd><dt id="function-block-diagram"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#function-block-diagram"></a>Function block 
    </dt><dd>
     <div class="railroad">
      <svg class="railroad-diagram" height="81" viewBox="0 0 497 81" width="497">
       <g transform="translate(.5 .5)">
        <path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5" data-type="start" data-updown="10 10"></path>
        <path d="M40 41h10"></path>
        <path d="M198 41h10"></path>
        <g data-type="non-terminal" data-updown="11 11">
         <path d="M50 41h0.0"></path>
         <path d="M198.0 41h0.0"></path>
         <rect height="22" width="148" x="50.0" y="30"></rect>
         <text x="124.0" y="45"> &lt;function-token&gt;</text>
        </g>
        <g data-type="choice" data-updown="21 20">
         <path d="M208 41h0.0"></path>
         <path d="M408.0 41h0.0"></path>
         <path d="M208.0 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
         <path d="M388.0 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
         <g data-type="skip" data-updown="0 0">
          <path d="M228.0 21h160"></path>
         </g>
         <path d="M208.0 41h20"></path>
         <path d="M388.0 41h20"></path>
         <g data-type="oneormore" data-updown="11 20">
          <path d="M228.0 41h0.0"></path>
          <path d="M388.0 41h0.0"></path>
          <path d="M228.0 41h10"></path>
          <path d="M378.0 41h10"></path>
          <path d="M238.0 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
          <path d="M378.0 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
          <g data-type="non-terminal" data-updown="11 11">
           <path d="M238.0 41h0.0"></path>
           <path d="M378.0 41h0.0"></path>
           <rect height="22" width="140" x="238.0" y="30"></rect>
           <text x="308.0" y="45"> Component value</text>
          </g>
          <g data-type="skip" data-updown="0 0">
           <path d="M238.0 61h140"></path>
          </g>
         </g>
        </g>
        <path d="M408 41h10"></path>
        <path d="M446 41h10"></path>
        <g data-type="terminal" data-updown="11 11">
         <path d="M418 41h0.0"></path>
         <path d="M446.0 41h0.0"></path>
         <rect height="22" rx="10" ry="10" width="28" x="418.0" y="30"></rect>
         <text x="432.0" y="45"> )</text>
        </g>
        <path d="M 456 41 h 20 m -10 -10 v 20 m 10 -20 v 20" data-type="end" data-updown="10 10"></path>
       </g>
      </svg>
     </div>
   </dd></dl>
   <h3 class="heading settled" data-level="5.2" id="parser-definitions"><span class="secno">5.2. </span><span class="content"> Definitions</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parser-definitions"></a></h3>
   <dl>
    <dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="current-input-token">current input token</dfn> 
    </dt><dd> The token or <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#component-value" id="ref-for-component-value-1">component value</a> currently being operated on, from the list of tokens produced by the tokenizer. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="next-input-token">next input token</dfn> 
    </dt><dd> The token or <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#component-value" id="ref-for-component-value-2">component value</a> following the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-1">current input token</a> in the list of tokens produced by the tokenizer.
			If there isn’t a token following the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-2">current input token</a>,
			the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-1">next input token</a> is an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-3">&lt;EOF-token&gt;</a>. 
    </dd><dt><dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-eof-token"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-4">&lt;EOF-token&gt;</a></dfn> 
    </dt><dd> A conceptual token representing the end of the list of tokens.
			Whenever the list of tokens is empty,
			the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-2">next input token</a> is always an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-5">&lt;EOF-token&gt;</a>. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-the-next-input-token">consume the next input token</dfn> 
    </dt><dd> Let the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-3">current input token</a> be the current <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-3">next input token</a>,
			adjusting the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-4">next input token</a> accordingly. 
    </dd><dt><dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="reconsume-the-current-input-token">reconsume the current input token</dfn> 
    </dt><dd> The next time an algorithm instructs you to <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-next-input-token" id="ref-for-consume-the-next-input-token-1">consume the next input token</a>,
			instead do nothing
			(retain the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-4">current input token</a> unchanged). 
   </dd></dl>
   <h3 class="heading settled" data-level="5.3" id="parser-entry-points"><span class="secno">5.3. </span><span class="content"> Parser Entry Points</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parser-entry-points"></a></h3>
   <p>The algorithms defined in this section produce high-level CSS objects
	from lower-level objects.
	They assume that they are invoked on a token stream,
	but they may also be invoked on a string;
	if so,
	first perform <a href="https://drafts.csswg.org/css-syntax-3/#input-preprocessing">input preprocessing</a> to produce a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-80">code point</a> stream,
	then perform <a href="https://drafts.csswg.org/css-syntax-3/#tokenization">tokenization</a> to produce a token stream.</p>
   <p>"<a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-stylesheet" id="ref-for-parse-a-stylesheet-1">Parse a stylesheet</a>" can also be invoked on a byte stream,
	in which case <a href="https://drafts.csswg.org/css-syntax-3/#input-byte-stream">The input byte stream</a> defines how to decode it into Unicode.</p>
   <p class="note" role="note">Note: This specification does not define how a byte stream is decoded for other entry points.</p>
   <p class="note" role="note">Note: Other specs can define additional entry points for their own purposes.</p>
   <div class="note" role="note">
     The following notes should probably be translated into normative text in the relevant specs,
		hooking this spec’s terms: 
    <ul>
     <li> "<a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-stylesheet" id="ref-for-parse-a-stylesheet-2">Parse a stylesheet</a>" is intended to be the normal parser entry point,
				for parsing stylesheets. 
     </li><li> "<a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-list-of-rules" id="ref-for-parse-a-list-of-rules-1">Parse a list of rules</a>" is intended for the content of at-rules such as <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-conditional-3/#at-ruledef-media">@media</a>.
				It differs from "<a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-stylesheet" id="ref-for-parse-a-stylesheet-3">Parse a stylesheet</a>" in the handling of <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-cdo-token" id="ref-for-typedef-cdo-token-3">&lt;CDO-token&gt;</a> and <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-cdc-token" id="ref-for-typedef-cdc-token-3">&lt;CDC-token&gt;</a>. 
     </li><li> "<a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-rule" id="ref-for-parse-a-rule-1">Parse a rule</a>" is intended for use by the <code>CSSStyleSheet#insertRule</code> method,
				and similar functions which might exist,
				which parse text into a single rule. 
     </li><li> "<a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-declaration" id="ref-for-parse-a-declaration-1">Parse a declaration</a>" is used in <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-conditional-3/#at-ruledef-supports">@supports</a> conditions. <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-css3-conditional">[CSS3-CONDITIONAL]</a> 
     </li><li> "<a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-list-of-declarations" id="ref-for-parse-a-list-of-declarations-2">Parse a list of declarations</a>" is for the contents of a <code>style</code> attribute,
				which parses text into the contents of a single style rule. 
     </li><li> "<a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-component-value" id="ref-for-parse-a-component-value-1">Parse a component value</a>" is for things that need to consume a single value,
				like the parsing rules for <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-values-4/#funcdef-attr">attr()</a>. 
     </li><li> "<a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-list-of-component-values" id="ref-for-parse-a-list-of-component-values-1">Parse a list of component values</a>" is for the contents of presentational attributes,
				which parse text into a single declaration’s value,
				or for parsing a stand-alone selector <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-select">[SELECT]</a> or list of Media Queries <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-mediaq">[MEDIAQ]</a>,
				as in <a href="https://www.w3.org/TR/selectors-api/">Selectors API</a> or the <code>media</code> HTML attribute. 
    </li></ul>
   </div>
   <p>All of the algorithms defined in this spec may be called with either a list of tokens or of component values.
	Either way produces an identical result.</p>
   <h4 class="heading settled" data-level="5.3.1" id="parse-grammar"><span class="secno">5.3.1. </span><span class="content"> Parse something according to a CSS grammar</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parse-grammar"></a></h4>
   <p>It is often desirable to parse a string or token list
	to see if it matches some CSS grammar,
	and if it does,
	to destructure it according to the grammar.
	This section provides a generic hook for this kind of operation.
	It should be invoked like "parse <var>foo</var> as a CSS <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-color-3/#valuea-def-color" title="Expands to: indigo | indigo | gold | gold | firebrick | firebrick | indianred | indianred | yellow | yellow | darkolivegreen | darkolivegreen | darkseagreen | darkseagreen | slategrey | slategrey | darkslategrey | darkslategrey | greenyellow | greenyellow | mediumorchid | mediumorchid | silver | silver | papayawhip | papayawhip | dimgray | dimgray | black | black | springgreen | springgreen | crimson | crimson | lightsalmon | lightsalmon | brown | brown | turquoise | turquoise | lightseagreen | lightseagreen | cyan | cyan | transparent | transparent | skyblue | skyblue | gray | gray | darkturquoise | darkturquoise | goldenrod | goldenrod | darkgreen | darkgreen | darkviolet | darkviolet | darkgray | darkgray | lime | lime | lightpink | lightpink | teal | teal | darkmagenta | darkmagenta | lightgoldenrodyellow | lightgoldenrodyellow | lavender | lavender | yellowgreen | yellowgreen | thistle | thistle | violet | violet | navy | navy | dimgrey | dimgrey | orchid | orchid | blue | blue | ghostwhite | ghostwhite | honeydew | honeydew | cornflowerblue | cornflowerblue | maroon | maroon | purple | purple | darkkhaki | darkkhaki | mediumpurple | mediumpurple | cornsilk | cornsilk | red | red | bisque | bisque | burlywood | burlywood | darkcyan | darkcyan | khaki | khaki | wheat | wheat | deepskyblue | deepskyblue | rebeccapurple | rebeccapurple | darkred | darkred | steelblue | steelblue | aliceblue | aliceblue | lightslategrey | lightslategrey | gainsboro | gainsboro | mediumturquoise | mediumturquoise | floralwhite | floralwhite | coral | coral | aqua | aqua | mediumslateblue | mediumslateblue | lightcyan | lightcyan | darksalmon | darksalmon | beige | beige | azure | azure | lightsteelblue | lightsteelblue | oldlace | oldlace | mediumvioletred | mediumvioletred | royalblue | royalblue | olivedrab | olivedrab | sienna | sienna | lightcoral | lightcoral | orangered | orangered | navajowhite | navajowhite | slategray | slategray | palegreen | palegreen | mistyrose | mistyrose | seashell | seashell | mediumspringgreen | mediumspringgreen | fuchsia | fuchsia | chartreuse | chartreuse | blanchedalmond | blanchedalmond | peru | peru | aquamarine | aquamarine | white | white | darkslategray | darkslategray | tomato | tomato | ivory | ivory | dodgerblue | dodgerblue | currentcolor | currentcolor | lemonchiffon | lemonchiffon | lightgreen | lightgreen | orange | orange | forestgreen | forestgreen | darkgrey | darkgrey | olive | olive | mintcream | mintcream | antiquewhite | antiquewhite | cadetblue | cadetblue | moccasin | moccasin | limegreen | limegreen | saddlebrown | saddlebrown | grey | grey | darkslateblue | darkslateblue | lightskyblue | lightskyblue | deeppink | deeppink | plum | plum | lightgrey | lightgrey | darkgoldenrod | darkgoldenrod | slateblue | slateblue | sandybrown | sandybrown | magenta | magenta | tan | tan | rosybrown | rosybrown | pink | pink | lightblue | lightblue | palevioletred | palevioletred | mediumseagreen | mediumseagreen | linen | linen | darkorange | darkorange | powderblue | powderblue | seagreen | seagreen | snow | snow | mediumblue | mediumblue | midnightblue | midnightblue | paleturquoise | paleturquoise | palegoldenrod | palegoldenrod | whitesmoke | whitesmoke | darkorchid | darkorchid | salmon | salmon | lightslategray | lightslategray | lawngreen | lawngreen | chocolate | chocolate | lightgray | lightgray | hotpink | hotpink | lightyellow | lightyellow | lavenderblush | lavenderblush | darkblue | darkblue | mediumaquamarine | mediumaquamarine | green | green | blueviolet | blueviolet | peachpuff | peachpuff">&lt;color&gt;</a>", or similar.</p>
   <p class="note" role="note">Note: As a reminder, this algorithm, along with all the others in this section,
	can be called with a string,
	a stream of CSS tokens,
	or a stream of CSS component values,
	whichever is most convenient.</p>
   <p>This algorithm must be called with <b>some input to be parsed</b>,
	and <b>some CSS grammar specification or term</b>.</p>
   <p>This algorithm returns either failure,
	if the input does not match the provided grammar,
	or the result of parsing the input according to the grammar,
	which is an unspecified structure corresponding to the provided grammar specification.
	The return value must only be interacted with by specification prose,
	where the representation ambiguity is not problematic
	if it is meant to be exposed outside of spec language,
	the spec using the result must explicitly translate it into a well-specified representation,
	such as, for example, by invoking a CSS serialization algorithm
	(like "serialize as a CSS <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value">&lt;string&gt;</a> value").</p>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="parse-something-according-to-a-css-grammar">parse something according to a CSS grammar</dfn>:</p>
   <ol>
    <li> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-list-of-component-values" id="ref-for-parse-a-list-of-component-values-2">Parse a list of component values</a> from the input,
			and let <var>result</var> be the return value. 
    </li><li> Attempt to match <var>result</var> against the provided grammar.
			If this is successful,
			return the matched result;
			otherwise, return failure. 
   </li></ol>
   <h4 class="heading settled" data-level="5.3.2" id="parse-stylesheet"><span class="secno">5.3.2. </span><span class="content"> Parse a stylesheet</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parse-stylesheet"></a></h4>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="parse-a-stylesheet">parse a stylesheet</dfn> from a stream of tokens:</p>
   <ol>
    <li> Create a new stylesheet. 
    </li><li> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-list-of-rules" id="ref-for-consume-a-list-of-rules-1">Consume a list of rules</a> from the stream of tokens, with the <var>top-level flag</var> set.
			Let the return value be <var>rules</var>. 
    </li><li> If the first rule in <var>rules</var> is an <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-13">at-rule</a> with a name
			that is an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> match for "charset",
			remove it from <var>rules</var>. 
    </li><li> Assign <var>rules</var> to the stylesheet’s value. 
    </li><li> Return the stylesheet. 
   </li></ol>
   <h4 class="heading settled" data-level="5.3.3" id="parse-list-of-rules"><span class="secno">5.3.3. </span><span class="content"> Parse a list of rules</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parse-list-of-rules"></a></h4>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="parse-a-list-of-rules">parse a list of rules</dfn> from a stream of tokens:</p>
   <ol>
    <li> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-list-of-rules" id="ref-for-consume-a-list-of-rules-2">Consume a list of rules</a> from the stream of tokens, with the <var>top-level flag</var> unset. 
    </li><li> Return the returned list. 
   </li></ol>
   <h4 class="heading settled" data-level="5.3.4" id="parse-rule"><span class="secno">5.3.4. </span><span class="content"> Parse a rule</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parse-rule"></a></h4>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="parse-a-rule">parse a rule</dfn> from a stream of tokens:</p>
   <ol>
    <li> While the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-5">next input token</a> is a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-3">&lt;whitespace-token&gt;</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-next-input-token" id="ref-for-consume-the-next-input-token-2">consume the next input token</a>. 
    </li><li>
      If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-6">next input token</a> is an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-6">&lt;EOF-token&gt;</a>,
			return a syntax error. 
     <p>Otherwise,
			if the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-7">next input token</a> is an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token" id="ref-for-typedef-at-keyword-token-6">&lt;at-keyword-token&gt;</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-an-at-rule" id="ref-for-consume-an-at-rule-1">consume an at-rule</a>,
			and let <var>rule</var> be the return value.</p>
     <p>Otherwise, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-qualified-rule" id="ref-for-consume-a-qualified-rule-1">consume a qualified rule</a> and let <var>rule</var> be the return value.
			If nothing was returned,
			return a syntax error.</p>
    </li><li> While the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-8">next input token</a> is a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-4">&lt;whitespace-token&gt;</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-next-input-token" id="ref-for-consume-the-next-input-token-3">consume the next input token</a>. 
    </li><li> If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-9">next input token</a> is an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-7">&lt;EOF-token&gt;</a>,
			return <var>rule</var>.
			Otherwise, return a syntax error. 
   </li></ol>
   <h4 class="heading settled" data-level="5.3.5" id="parse-declaration"><span class="secno">5.3.5. </span><span class="content"> Parse a declaration</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parse-declaration"></a></h4>
   <p class="note" role="note">Note: Unlike "<a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-list-of-declarations" id="ref-for-parse-a-list-of-declarations-3">Parse a list of declarations</a>",
	this parses only a declaration and not an at-rule.</p>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="parse-a-declaration">parse a declaration</dfn>:</p>
   <ol>
    <li> While the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-10">next input token</a> is a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-5">&lt;whitespace-token&gt;</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-next-input-token" id="ref-for-consume-the-next-input-token-4">consume the next input token</a>. 
    </li><li> If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-11">next input token</a> is not an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-7">&lt;ident-token&gt;</a>,
			return a syntax error. 
    </li><li> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-declaration" id="ref-for-consume-a-declaration-1">Consume a declaration</a>.
			If anything was returned, return it.
			Otherwise, return a syntax error. 
   </li></ol>
   <h4 class="heading settled" data-level="5.3.6" id="parse-list-of-declarations"><span class="secno">5.3.6. </span><span class="content"> Parse a list of declarations</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parse-list-of-declarations"></a></h4>
   <p class="note" role="note">Note: Despite the name,
	this actually parses a mixed list of declarations and at-rules,
	as CSS 2.1 does for <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-page-3/#at-ruledef-page">@page</a>.
	Unexpected at-rules (which could be all of them, in a given context)
	are invalid and should be ignored by the consumer.</p>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="parse-a-list-of-declarations">parse a list of declarations</dfn>:</p>
   <ol>
    <li> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-list-of-declarations" id="ref-for-consume-a-list-of-declarations-1">Consume a list of declarations</a>. 
    </li><li> Return the returned list. 
   </li></ol>
   <h4 class="heading settled" data-level="5.3.7" id="parse-component-value"><span class="secno">5.3.7. </span><span class="content"> Parse a component value</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parse-component-value"></a></h4>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="parse-a-component-value">parse a component value</dfn>:</p>
   <ol>
    <li> While the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-12">next input token</a> is a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-6">&lt;whitespace-token&gt;</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-next-input-token" id="ref-for-consume-the-next-input-token-5">consume the next input token</a>. 
    </li><li> If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-13">next input token</a> is an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-8">&lt;EOF-token&gt;</a>,
			return a syntax error. 
    </li><li> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-component-value" id="ref-for-consume-a-component-value-1">Consume a component value</a> and let <var>value</var> be the return value. 
    </li><li> While the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-14">next input token</a> is a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-7">&lt;whitespace-token&gt;</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-next-input-token" id="ref-for-consume-the-next-input-token-6">consume the next input token</a>. 
    </li><li> If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-15">next input token</a> is an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-9">&lt;EOF-token&gt;</a>,
			return <var>value</var>.
			Otherwise,
			return a syntax error. 
   </li></ol>
   <h4 class="heading settled" data-level="5.3.8" id="parse-list-of-component-values"><span class="secno">5.3.8. </span><span class="content"> Parse a list of component values</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parse-list-of-component-values"></a></h4>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-export="" id="parse-a-list-of-component-values">parse a list of component values</dfn>:</p>
   <ol>
    <li> Repeatedly <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-component-value" id="ref-for-consume-a-component-value-2">consume a component value</a> until an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-10">&lt;EOF-token&gt;</a> is returned,
			appending the returned values (except the final <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-11">&lt;EOF-token&gt;</a>) into a list.
			Return the list. 
   </li></ol>
   <h4 class="heading settled" data-level="5.3.9" id="parse-comma-separated-list-of-component-values"><span class="secno">5.3.9. </span><span class="content"> Parse a comma-separated list of component values</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parse-comma-separated-list-of-component-values"></a></h4>
   <p>To <dfn data-dfn-type="dfn" data-export="" id="parse-a-comma-separated-list-of-component-values">parse a comma-separated list of component values<a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parse-a-comma-separated-list-of-component-values"></a></dfn>:</p>
   <ol>
    <li> Let <var>list of cvls</var> be an initially empty list of component value lists. 
    </li><li>
      Repeatedly <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-component-value" id="ref-for-consume-a-component-value-3">consume a component value</a> until an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-12">&lt;EOF-token&gt;</a> or <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-comma-token" id="ref-for-typedef-comma-token-2">&lt;comma-token&gt;</a> is returned,
			appending the returned values (except the final <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-13">&lt;EOF-token&gt;</a> or <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-comma-token" id="ref-for-typedef-comma-token-3">&lt;comma-token&gt;</a>) into a list.
			Append the list to <var>list of cvls</var>. 
     <p>If it was a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-comma-token" id="ref-for-typedef-comma-token-4">&lt;comma-token&gt;</a> that was returned,
			repeat this step.</p>
    </li><li> Return <var>list of cvls</var>. 
   </li></ol>
   <h3 class="heading settled" data-level="5.4" id="parser-algorithms"><span class="secno">5.4. </span><span class="content"> Parser Algorithms</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parser-algorithms"></a></h3>
   <p>The following algorithms comprise the parser.
	They are called by the parser entry points above.</p>
   <p>These algorithms may be called with a list of either tokens or of component values.
	(The difference being that some tokens are replaced by <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#function" id="ref-for-function-1">functions</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#simple-block" id="ref-for-simple-block-1">simple blocks</a> in a list of component values.)
	Similar to how the input stream returned EOF code points to represent when it was empty during the tokenization stage,
	the lists in this stage must return an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-14">&lt;EOF-token&gt;</a> when the next token is requested but they are empty.</p>
   <p>An algorithm may be invoked with a specific list,
	in which case it consumes only that list
	(and when that list is exhausted,
	it begins returning <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-15">&lt;EOF-token&gt;</a>s).
	Otherwise,
	it is implicitly invoked with the same list as the invoking algorithm.</p>
   <h4 class="heading settled" data-level="5.4.1" id="consume-list-of-rules"><span class="secno">5.4.1. </span><span class="content"> Consume a list of rules</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-list-of-rules"></a></h4>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-a-list-of-rules">consume a list of rules</dfn>:</p>
   <p>Create an initially empty list of rules.</p>
   <p>Repeatedly consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-16">next input token</a>:</p>
   <dl>
    <dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-8">&lt;whitespace-token&gt;</a> 
    </dt><dd> Do nothing. 
    </dd><dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-16">&lt;EOF-token&gt;</a> 
    </dt><dd> Return the list of rules. 
    </dd><dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-cdo-token" id="ref-for-typedef-cdo-token-4">&lt;CDO-token&gt;</a> 
    </dt><dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-cdc-token" id="ref-for-typedef-cdc-token-4">&lt;CDC-token&gt;</a> 
    </dt><dd>
      If the <dfn data-dfn-type="dfn" data-noexport="" id="top-level-flag"><var>top-level flag</var><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#top-level-flag"></a></dfn> is set,
			do nothing. 
     <p>Otherwise, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-token" id="ref-for-reconsume-the-current-input-token-1">reconsume the current input token</a>. <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-qualified-rule" id="ref-for-consume-a-qualified-rule-2">Consume a qualified rule</a>.
			If anything is returned,
			append it to the list of rules.</p>
    </dd><dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token" id="ref-for-typedef-at-keyword-token-7">&lt;at-keyword-token&gt;</a> 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-token" id="ref-for-reconsume-the-current-input-token-2">Reconsume the current input token</a>. <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-an-at-rule" id="ref-for-consume-an-at-rule-2">Consume an at-rule</a>.
			If anything is returned,
			append it to the list of rules. 
    </dd><dt>anything else 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-token" id="ref-for-reconsume-the-current-input-token-3">Reconsume the current input token</a>. <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-qualified-rule" id="ref-for-consume-a-qualified-rule-3">Consume a qualified rule</a>.
			If anything is returned,
			append it to the list of rules. 
   </dd></dl>
   <h4 class="heading settled" data-level="5.4.2" id="consume-at-rule"><span class="secno">5.4.2. </span><span class="content"> Consume an at-rule</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-at-rule"></a></h4>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-an-at-rule">consume an at-rule</dfn>:</p>
   <p><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-next-input-token" id="ref-for-consume-the-next-input-token-7">Consume the next input token</a>.
	Create a new at-rule
	with its name set to the value of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-5">current input token</a>,
	its prelude initially set to an empty list,
	and its value initially set to nothing.</p>
   <p>Repeatedly consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-17">next input token</a>:</p>
   <dl>
    <dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-semicolon-token" id="ref-for-typedef-semicolon-token-3">&lt;semicolon-token&gt;</a> 
    </dt><dd> Return the at-rule. 
    </dd><dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-17">&lt;EOF-token&gt;</a> This is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-12">parse error</a>.
			Return the at-rule. 
    </dt><dt><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-curly" id="ref-for-tokendef-open-curly-5">&lt;{-token&gt;</a> 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-simple-block" id="ref-for-consume-a-simple-block-1">Consume a simple block</a> and assign it to the at-rule’s block.
			Return the at-rule. 
    </dd><dt><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#simple-block" id="ref-for-simple-block-2">simple block</a> with an associated token of <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-curly" id="ref-for-tokendef-open-curly-6">&lt;{-token&gt;</a> 
    </dt><dd> Assign the block to the at-rule’s block.
			Return the at-rule. 
    </dd><dt>anything else 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-token" id="ref-for-reconsume-the-current-input-token-4">Reconsume the current input token</a>. <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-component-value" id="ref-for-consume-a-component-value-4">Consume a component value</a>.
			Append the returned value to the at-rule’s prelude. 
   </dd></dl>
   <h4 class="heading settled" data-level="5.4.3" id="consume-qualified-rule"><span class="secno">5.4.3. </span><span class="content"> Consume a qualified rule</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-qualified-rule"></a></h4>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-a-qualified-rule">consume a qualified rule</dfn>:</p>
   <p>Create a new qualified rule
	with its prelude initially set to an empty list,
	and its value initially set to nothing.</p>
   <p>Repeatedly consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-18">next input token</a>:</p>
   <dl>
    <dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-18">&lt;EOF-token&gt;</a> 
    </dt><dd> This is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-13">parse error</a>.
			Return nothing. 
    </dd><dt><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-curly" id="ref-for-tokendef-open-curly-7">&lt;{-token&gt;</a> 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-simple-block" id="ref-for-consume-a-simple-block-2">Consume a simple block</a> and assign it to the qualified rule’s block.
			Return the qualified rule. 
    </dd><dt><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#simple-block" id="ref-for-simple-block-3">simple block</a> with an associated token of <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-curly" id="ref-for-tokendef-open-curly-8">&lt;{-token&gt;</a> 
    </dt><dd> Assign the block to the qualified rule’s block.
			Return the qualified rule. 
    </dd><dt>anything else 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-token" id="ref-for-reconsume-the-current-input-token-5">Reconsume the current input token</a>. <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-component-value" id="ref-for-consume-a-component-value-5">Consume a component value</a>.
			Append the returned value to the qualified rule’s prelude. 
   </dd></dl>
   <h4 class="heading settled" data-level="5.4.4" id="consume-list-of-declarations"><span class="secno">5.4.4. </span><span class="content"> Consume a list of declarations</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-list-of-declarations"></a></h4>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-a-list-of-declarations">consume a list of declarations</dfn>:</p>
   <p>Create an initially empty list of declarations.</p>
   <p>Repeatedly consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-19">next input token</a>:</p>
   <dl>
    <dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-9">&lt;whitespace-token&gt;</a> 
    </dt><dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-semicolon-token" id="ref-for-typedef-semicolon-token-4">&lt;semicolon-token&gt;</a> 
    </dt><dd> Do nothing. 
    </dd><dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-19">&lt;EOF-token&gt;</a> 
    </dt><dd> Return the list of declarations. 
    </dd><dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token" id="ref-for-typedef-at-keyword-token-8">&lt;at-keyword-token&gt;</a> 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-token" id="ref-for-reconsume-the-current-input-token-6">Reconsume the current input token</a>. <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-an-at-rule" id="ref-for-consume-an-at-rule-3">Consume an at-rule</a>.
			Append the returned rule to the list of declarations. 
    </dd><dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-8">&lt;ident-token&gt;</a> 
    </dt><dd> Initialize a temporary list initially filled with the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-6">current input token</a>.
			As long as the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-20">next input token</a> is anything other than a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-semicolon-token" id="ref-for-typedef-semicolon-token-5">&lt;semicolon-token&gt;</a> or <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-20">&lt;EOF-token&gt;</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-component-value" id="ref-for-consume-a-component-value-6">consume a component value</a> and append it to the temporary list. <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-declaration" id="ref-for-consume-a-declaration-2">Consume a declaration</a> from the temporary list.
			If anything was returned,
			append it to the list of declarations. 
    </dd><dt>anything else 
    </dt><dd> This is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-14">parse error</a>. <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-token" id="ref-for-reconsume-the-current-input-token-7">Reconsume the current input token</a>.
			As long as the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-21">next input token</a> is anything other than a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-semicolon-token" id="ref-for-typedef-semicolon-token-6">&lt;semicolon-token&gt;</a> or <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-21">&lt;EOF-token&gt;</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-component-value" id="ref-for-consume-a-component-value-7">consume a component value</a> and throw away the returned value. 
   </dd></dl>
   <h4 class="heading settled" data-level="5.4.5" id="consume-declaration"><span class="secno">5.4.5. </span><span class="content"> Consume a declaration</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-declaration"></a></h4>
   <p class="note" role="note">Note: This algorithm assumes that the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-22">next input token</a> has already been checked to be an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-9">&lt;ident-token&gt;</a>.</p>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-a-declaration">consume a declaration</dfn>:</p>
   <p><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-next-input-token" id="ref-for-consume-the-next-input-token-8">Consume the next input token</a>.
	Create a new declaration
	with its name set to the value of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-7">current input token</a> and its value initially set to the empty list.</p>
   <ol>
    <li> While the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-23">next input token</a> is a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-10">&lt;whitespace-token&gt;</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-next-input-token" id="ref-for-consume-the-next-input-token-9">consume the next input token</a>. 
    </li><li>
      If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-24">next input token</a> is anything other than a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-colon-token" id="ref-for-typedef-colon-token-2">&lt;colon-token&gt;</a>,
			this is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-15">parse error</a>.
			Return nothing. 
     <p>Otherwise, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-next-input-token" id="ref-for-consume-the-next-input-token-10">consume the next input token</a>.</p>
    </li><li> As long as the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-25">next input token</a> is anything other than an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-22">&lt;EOF-token&gt;</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-component-value" id="ref-for-consume-a-component-value-8">consume a component value</a> and append it to the declaration’s value. 
    </li><li> If the last two non-<a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-11">&lt;whitespace-token&gt;</a>s in the declaration’s value are
			a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-15">&lt;delim-token&gt;</a> with the value "!"
			followed by an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-10">&lt;ident-token&gt;</a> with a value that is an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> match for "important",
			remove them from the declaration’s value
			and set the declaration’s <var>important</var> flag to true. 
    </li><li> Return the declaration. 
   </li></ol>
   <h4 class="heading settled" data-level="5.4.6" id="consume-component-value"><span class="secno">5.4.6. </span><span class="content"> Consume a component value</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-component-value"></a></h4>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-a-component-value">consume a component value</dfn>:</p>
   <p><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-the-next-input-token" id="ref-for-consume-the-next-input-token-11">Consume the next input token</a>.</p>
   <p>If the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-8">current input token</a> is a <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-curly" id="ref-for-tokendef-open-curly-9">&lt;{-token&gt;</a>, <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-square" id="ref-for-tokendef-open-square-4">&lt;[-token&gt;</a>, or <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-paren" id="ref-for-tokendef-open-paren-4">&lt;(-token&gt;</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-simple-block" id="ref-for-consume-a-simple-block-3">consume a simple block</a> and return it.</p>
   <p>Otherwise, if the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-9">current input token</a> is a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token" id="ref-for-typedef-function-token-8">&lt;function-token&gt;</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-function" id="ref-for-consume-a-function-1">consume a function</a> and return it.</p>
   <p>Otherwise, return the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-10">current input token</a>.</p>
   <h4 class="heading settled" data-level="5.4.7" id="consume-simple-block"><span class="secno">5.4.7. </span><span class="content"> Consume a simple block</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-simple-block"></a></h4>
   <p class="note" role="note">Note: This algorithm assumes that the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-11">current input token</a> has already been checked to be an <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-curly" id="ref-for-tokendef-open-curly-10">&lt;{-token&gt;</a>, <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-square" id="ref-for-tokendef-open-square-5">&lt;[-token&gt;</a>, or <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-paren" id="ref-for-tokendef-open-paren-5">&lt;(-token&gt;</a>.</p>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-a-simple-block">consume a simple block</dfn>:</p>
   <p>The <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="ending-token">ending token</dfn> is the mirror variant of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-12">current input token</a>.
	(E.g. if it was called with <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-square" id="ref-for-tokendef-open-square-6">&lt;[-token&gt;</a>, the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#ending-token" id="ref-for-ending-token-1">ending token</a> is <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-square" id="ref-for-tokendef-close-square-3">&lt;]-token&gt;</a>.)</p>
   <p>Create a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#simple-block" id="ref-for-simple-block-4">simple block</a> with its associated token set to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-13">current input token</a> and with a value with is initially an empty list.</p>
   <p>Repeatedly consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-26">next input token</a> and process it as follows:</p>
   <dl>
    <dt><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#ending-token" id="ref-for-ending-token-2">ending token</a> 
    </dt><dd> Return the block. 
    </dd><dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-23">&lt;EOF-token&gt;</a> This is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-16">parse error</a>.
			Return the block. 
    </dt><dt>anything else 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-token" id="ref-for-reconsume-the-current-input-token-8">Reconsume the current input token</a>. <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-component-value" id="ref-for-consume-a-component-value-9">Consume a component value</a> and append it to the value of the block. 
   </dd></dl>
   <h4 class="heading settled" data-level="5.4.8" id="consume-function"><span class="secno">5.4.8. </span><span class="content"> Consume a function</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#consume-function"></a></h4>
   <p class="note" role="note">Note: This algorithm assumes that the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-14">current input token</a> has already been checked to be a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token" id="ref-for-typedef-function-token-9">&lt;function-token&gt;</a>.</p>
   <p>To <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="consume-a-function">consume a function</dfn>:</p>
   <p>Create a function with a name equal to the value of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#current-input-token" id="ref-for-current-input-token-15">current input token</a>,
	and with a value which is initially an empty list.</p>
   <p>Repeatedly consume the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#next-input-token" id="ref-for-next-input-token-27">next input token</a> and process it as follows:</p>
   <dl>
    <dt><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-paren" id="ref-for-tokendef-close-paren-3">&lt;)-token&gt;</a> 
    </dt><dd> Return the function. 
    </dd><dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token" id="ref-for-typedef-eof-token-24">&lt;EOF-token&gt;</a> This is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-17">parse error</a>.
			Return the function. 
    </dt><dt>anything else 
    </dt><dd> <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-token" id="ref-for-reconsume-the-current-input-token-9">Reconsume the current input token</a>. <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-component-value" id="ref-for-consume-a-component-value-10">Consume a component value</a> and append the returned value
			to the function’s value. 
   </dd></dl>
   <h2 class="heading settled" data-level="6" id="anb-microsyntax"><span class="secno">6. </span><span class="content"> The <var>An+B</var> microsyntax</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#anb-microsyntax"></a></h2>
   <p>Several things in CSS,
	such as the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/selectors-4/#nth-child-pseudo">:nth-child()</a> pseudoclass,
	need to indicate indexes in a list.
	The <var>An+B</var> microsyntax is useful for this,
	allowing an author to easily indicate single elements
	or all elements at regularly-spaced intervals in a list.</p>
   <p>The <dfn data-dfn-type="dfn" data-export="" id="anb">An+B<a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#anb"></a></dfn> notation defines an integer step (<dfn data-dfn-type="dfn" data-noexport="" id="a">A<a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#a"></a></dfn>) and offset (<dfn data-dfn-type="dfn" data-noexport="" id="b">B<a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#b"></a></dfn>),
	and represents the <var>An+B</var>th elements in a list,
	for every positive integer or zero value of <var>n</var>,
	with the first element in the list having index 1 (not 0).</p>
   <p>For values of <var>A</var> and <var>B</var> greater than 0,
	this effectively divides the list into groups of <var>A</var> elements
	(the last group taking the remainder),
	and selecting the <var>B</var>th element of each group.</p>
   <p>The <var>An+B</var> notation also accepts the <span class="css">even</span> and <span class="css">odd</span> keywords,
	which have the same meaning as <span class="css">2n</span> and <span class="css">2n+1</span>, respectively.</p>
   <div class="example" id="example-628041d6">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-628041d6"></a> 
    <p>Examples: </p>
<pre>2n+0   /* represents all of the even elements in the list */

even   /* same */

4n+1   /* represents the 1st, 5th, 9th, 13th, etc. elements in the list */</pre>
   </div>
   <p>The values of <var>A</var> and <var>B</var> can be negative,
	but only the positive results of <var>An+B</var>,
	for <var>n</var> ≥ 0,
	are used.</p>
   <div class="example" id="example-298f7191">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-298f7191"></a> 
    <p>Example: </p>
<pre>-1n+6   /* represents the first 6 elements of the list */

-4n+10  /* represents the 2nd, 6th, and 10th elements of the list */
</pre>
   </div>
   <p>If both <var>A</var> and <var>B</var> are 0,
	the pseudo-class represents no element in the list.</p>
   <h3 class="heading settled" data-level="6.1" id="anb-syntax"><span class="secno">6.1. </span><span class="content"> Informal Syntax Description</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#anb-syntax"></a></h3>
   <p><em>This section is non-normative.</em></p>
   <p>When <var>A</var> is 0, the <var>An</var> part may be omitted
	(unless the <var>B</var> part is already omitted).
	When <var>An</var> is not included
	and <var>B</var> is non-negative,
	the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/selectors-4/#selectordef-adjacent">+</a> sign before <var>B</var> (when allowed)
	may also be omitted.
	In this case the syntax simplifies to just <var>B</var>.</p>
   <div class="example" id="example-aba88b05">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-aba88b05"></a> 
    <p>Examples: </p>
<pre>0n+5   /* represents the 5th element in the list */

5      /* same */</pre>
   </div>
   <p>When <var>A</var> is 1 or -1,
	the <code>1</code> may be omitted from the rule.</p>
   <div class="example" id="example-a0dfe835">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-a0dfe835"></a> 
    <p>Examples: </p>
    <p>The following notations are therefore equivalent: </p>
<pre>1n+0   /* represents all elements in the list */

n+0    /* same */

n      /* same */</pre>
   </div>
   <p>If <var>B</var> is 0, then every <var>A</var>th element is picked.
	In such a case,
	the <var>+B</var> (or <var>-B</var>) part may be omitted
	unless the <var>A</var> part is already omitted.</p>
   <div class="example" id="example-27f96171">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-27f96171"></a> 
    <p>Examples: </p>
<pre>2n+0   /* represents every even element in the list */

2n     /* same */</pre>
   </div>
   <p>When B is negative, its minus sign replaces the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/selectors-4/#selectordef-adjacent">+</a> sign.</p>
   <div class="example" id="example-3df7e5ce">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-3df7e5ce"></a> 
    <p>Valid example: </p>
<pre>3n-6</pre>
    <p>Invalid example: </p>
<pre>3n + -6</pre>
   </div>
   <p>Whitespace is permitted on either side of the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/selectors-4/#selectordef-adjacent">+</a> or <span class="css">-</span> that separates the <var>An</var> and <var>B</var> parts when both are present.</p>
   <div class="example" id="example-ece30dbd">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-ece30dbd"></a> 
    <p>Valid Examples with white space: </p>
<pre>3n + 1

+3n - 2

-n+ 6

+6</pre>
    <p>Invalid Examples with white space: </p>
<pre>3 n

+ 2n

+ 2</pre>
   </div>
   <h3 class="heading settled" data-level="6.2" id="the-anb-type"><span class="secno">6.2. </span><span class="content"> The <code>&lt;an+b&gt;</code> type</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#the-anb-type"></a></h3>
   <p>The <var>An+B</var> notation was originally defined using a slightly different tokenizer than the rest of CSS,
	resulting in a somewhat odd definition when expressed in terms of CSS tokens.
	This section describes how to recognize the <var>An+B</var> notation in terms of CSS tokens
	(thus defining the <var>&lt;an+b&gt;</var> type for CSS grammar purposes),
	and how to interpret the CSS tokens to obtain values for <var>A</var> and <var>B</var>.</p>
   <p>The <var>&lt;an+b&gt;</var> type is defined
	(using the <a href="https://www.w3.org/TR/css3-values/#value-defs">Value Definition Syntax in the Values &amp; Units spec</a>)
	as:</p>
<pre class="prod"><dfn data-dfn-type="type" data-export="" id="anb-production">&lt;an<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-one-plus">+</a>b&gt;<a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#anb-production"></a></dfn> =
  odd <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a> even <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  <var>&lt;integer&gt;</var> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>

  <var>&lt;n-dimension&gt;</var> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  '+'<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt">?</a><sup><a href="https://drafts.csswg.org/css-syntax-3/#anb-plus">†</a></sup> n <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  -n <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>

  <var>&lt;ndashdigit-dimension&gt;</var> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  '+'<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt">?</a><sup><a href="https://drafts.csswg.org/css-syntax-3/#anb-plus">†</a></sup> <var>&lt;ndashdigit-ident&gt;</var> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  <var>&lt;dashndashdigit-ident&gt;</var> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>

  <var>&lt;n-dimension&gt;</var> <var>&lt;signed-integer&gt;</var> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  '+'<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt">?</a><sup><a href="https://drafts.csswg.org/css-syntax-3/#anb-plus">†</a></sup> n <var>&lt;signed-integer&gt;</var> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  -n <var>&lt;signed-integer&gt;</var> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>

  <var>&lt;ndash-dimension&gt;</var> <var>&lt;signless-integer&gt;</var> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  '+'<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt">?</a><sup><a href="https://drafts.csswg.org/css-syntax-3/#anb-plus">†</a></sup> n- <var>&lt;signless-integer&gt;</var> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  -n- <var>&lt;signless-integer&gt;</var> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>

  <var>&lt;n-dimension&gt;</var> ['+' <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a> '-'] <var>&lt;signless-integer&gt;</var>
  '+'<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt">?</a><sup><a href="https://drafts.csswg.org/css-syntax-3/#anb-plus">†</a></sup> n ['+' <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a> '-'] <var>&lt;signless-integer&gt;</var> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  -n ['+' <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a> '-'] <var>&lt;signless-integer&gt;</var>
</pre>
   <p>where:</p>
   <ul>
    <li><dfn class="css" data-dfn-type="type" data-export="" id="typedef-n-dimension"><code>&lt;n-dimension&gt;</code><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#typedef-n-dimension"></a></dfn> is a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-10">&lt;dimension-token&gt;</a> with its type flag set to "integer", and a unit that is an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> match for "n" 
    </li><li><dfn class="css" data-dfn-type="type" data-export="" id="typedef-ndash-dimension"><code>&lt;ndash-dimension&gt;</code><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#typedef-ndash-dimension"></a></dfn> is a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-11">&lt;dimension-token&gt;</a> with its type flag set to "integer", and a unit that is an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> match for "n-" 
    </li><li><dfn class="css" data-dfn-type="type" data-export="" id="typedef-ndashdigit-dimension"><code>&lt;ndashdigit-dimension&gt;</code><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#typedef-ndashdigit-dimension"></a></dfn> is a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-12">&lt;dimension-token&gt;</a> with its type flag set to "integer", and a unit that is an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> match for "n-*", where "*" is a series of one or more <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-16">digits</a> 
    </li><li><dfn class="css" data-dfn-type="type" data-export="" id="typedef-ndashdigit-ident"><code>&lt;ndashdigit-ident&gt;</code><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#typedef-ndashdigit-ident"></a></dfn> is an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-11">&lt;ident-token&gt;</a> whose value is an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> match for "n-*", where "*" is a series of one or more <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-17">digits</a> 
    </li><li><dfn class="css" data-dfn-type="type" data-export="" id="typedef-dashndashdigit-ident"><code>&lt;dashndashdigit-ident&gt;</code><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#typedef-dashndashdigit-ident"></a></dfn> is an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-12">&lt;ident-token&gt;</a> whose value is an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> match for "-n-*", where "*" is a series of one or more <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-18">digits</a> 
    </li><li><dfn class="css" data-dfn-type="type" data-export="" id="typedef-integer"><code>&lt;integer&gt;</code><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#typedef-integer"></a></dfn> is a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token" id="ref-for-typedef-number-token-6">&lt;number-token&gt;</a> with its type flag set to "integer" 
    </li><li><dfn class="css" data-dfn-type="type" data-export="" id="typedef-signed-integer"><code>&lt;signed-integer&gt;</code><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#typedef-signed-integer"></a></dfn> is a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token" id="ref-for-typedef-number-token-7">&lt;number-token&gt;</a> with its type flag set to "integer", and whose representation starts with "+" or "-" 
    </li><li><dfn class="css" data-dfn-type="type" data-export="" id="typedef-signless-integer"><code>&lt;signless-integer&gt;</code><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#typedef-signless-integer"></a></dfn> is a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token" id="ref-for-typedef-number-token-8">&lt;number-token&gt;</a> with its type flag set to "integer", and whose representation start with a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#digit" id="ref-for-digit-19">digit</a> 
   </li></ul>
   <p id="anb-plus"> <sup>†</sup>: When a plus sign (+) precedes an ident starting with "n", as in the cases marked above,
		there must be no whitespace between the two tokens,
		or else the tokens do not match the above grammar.
		Whitespace is valid (and ignored) between any other two tokens. </p>
   <p>The clauses of the production are interpreted as follows:</p>
   <dl>
    <dt><span class="css">odd</span> 
    </dt><dd> <var>A</var> is 2, <var>B</var> is 1. 
    </dd><dt><span class="css">even</span> 
    </dt><dd> <var>A</var> is 2, <var>B</var> is 0. 
    </dd><dt><code><var>&lt;integer&gt;</var></code> 
    </dt><dd> <var>A</var> is 0, <var>B</var> is the integer’s value. 
    </dd><dt><code><var>&lt;n-dimension&gt;</var></code> 
    </dt><dt><code>'+'? n</code> 
    </dt><dt><code>-n</code> 
    </dt><dd> <var>A</var> is the dimension’s value, 1, or -1, respectively. <var>B</var> is 0. 
    </dd><dt><code><var>&lt;ndashdigit-dimension&gt;</var></code> 
    </dt><dt><code>'+'? <var>&lt;ndashdigit-ident&gt;</var></code> 
    </dt><dd> <var>A</var> is the dimension’s value or 1, respectively. <var>B</var> is the dimension’s unit or ident’s value, respectively,
			with the first <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-81">code point</a> removed and the remainder interpreted as a base-10 number. <span class="note" role="note">B is negative.</span> 
    </dd><dt><code><var>&lt;dashndashdigit-ident&gt;</var></code> 
    </dt><dd> <var>A</var> is -1. <var>B</var> is the ident’s value, with the first two <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-82">code points</a> removed and the remainder interpreted as a base-10 number. <span class="note" role="note">B is negative.</span> 
    </dd><dt><code><var>&lt;n-dimension&gt;</var> <var>&lt;signed-integer&gt;</var></code> 
    </dt><dt><code>'+'? n <var>&lt;signed-integer&gt;</var></code> 
    </dt><dt><code>-n <var>&lt;signed-integer&gt;</var></code> 
    </dt><dd> <var>A</var> is the dimension’s value, 1, or -1, respectively. <var>B</var> is the integer’s value. 
    </dd><dt><code><var>&lt;ndash-dimension&gt;</var> <var>&lt;signless-integer&gt;</var></code> 
    </dt><dt><code>'+'? n- <var>&lt;signless-integer&gt;</var></code> 
    </dt><dt><code>-n- <var>&lt;signless-integer&gt;</var></code> 
    </dt><dd> <var>A</var> is the dimension’s value, 1, or -1, respectively. <var>B</var> is the negation of the integer’s value. 
    </dd><dt><code><var>&lt;n-dimension&gt;</var> ['+' | '-'] <var>&lt;signless-integer&gt;</var></code> 
    </dt><dt><code>'+'? n ['+' | '-'] <var>&lt;signless-integer&gt;</var></code> 
    </dt><dt><code>-n ['+' | '-'] <var>&lt;signless-integer&gt;</var></code> 
    </dt><dd> <var>A</var> is the dimension’s value, 1, or -1, respectively. <var>B</var> is the integer’s value.
			If a <code>'-'</code> was provided between the two, <var>B</var> is instead the negation of the integer’s value. 
   </dd></dl>
   <h2 class="heading settled" data-level="7" id="urange"><span class="secno">7. </span><span class="content"> The Unicode-Range microsyntax</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#urange"></a></h2>
   <p>Some constructs,
	such as the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-fonts-3/#descdef-unicode-range">unicode-range</a> descriptor for the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-fonts-3/#at-font-face-rule">@font-face</a> rule,
	need a way to describe one or more unicode code points.
	The <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-urange">&lt;urange&gt;</dfn> production represents a range of one or more unicode code points.</p>
   <p>Informally, the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-1">&lt;urange&gt;</a> production has three forms:</p>
   <dl>
    <dt>U+0001 
    </dt><dd> Defines a range consisting of a single code point,
			in this case the code point "1". 
    </dd><dt>U+0001-00ff 
    </dt><dd> Defines a range of codepoints between the first and the second value,
			in this case the range between "1" and "ff" (255 in decimal) inclusive. 
    </dd><dt>U+00?? 
    </dt><dd> Defines a range of codepoints where the "?" characters range over all <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#hex-digit" id="ref-for-hex-digit-6">hex digits</a>,
			in this case defining the same as the value <span class="css">U+0000-00ff</span>. 
   </dd></dl>
   <p>In each form, a maximum of 6 digits is allowed for each hexadecimal number
	(if you treat "?" as a hexadecimal digit).</p>
   <h3 class="heading settled" data-level="7.1" id="urange-syntax"><span class="secno">7.1. </span><span class="content"> The <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-2">&lt;urange&gt;</a> type</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#urange-syntax"></a></h3>
   <p>The <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-3">&lt;urange&gt;</a> notation was originally defined as a primitive token in CSS,
	but it is used very rarely,
	and collides with legitimate <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-13">&lt;ident-token&gt;</a>s in confusing ways.
	This section describes how to recognize the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-4">&lt;urange&gt;</a> notation
	in terms of existing CSS tokens,
	and how to interpret it as a range of unicode codepoints.</p>
   <p class="note" role="note">Note: The syntax described here is intentionally very low-level,
	and geared toward implementors.
	Authors should instead read the informal syntax description in the previous section,
	as it contains all information necessary to use <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-5">&lt;urange&gt;</a>,
	and is actually readable.</p>
   <p>The <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-6">&lt;urange&gt;</a> type is defined
	(using the <a href="https://www.w3.org/TR/css3-values/#value-defs">Value Definition Syntax in the Values &amp; Units spec</a>) as:</p>
<pre class="prod"><a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-7">&lt;urange&gt;</a> =
  u '+' <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-14">&lt;ident-token&gt;</a> '?'<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-zero-plus">*</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  u <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-13">&lt;dimension-token&gt;</a> '?'<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-zero-plus">*</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  u <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token" id="ref-for-typedef-number-token-9">&lt;number-token&gt;</a> '?'<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-zero-plus">*</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  u <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token" id="ref-for-typedef-number-token-10">&lt;number-token&gt;</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-14">&lt;dimension-token&gt;</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  u <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token" id="ref-for-typedef-number-token-11">&lt;number-token&gt;</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token" id="ref-for-typedef-number-token-12">&lt;number-token&gt;</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
  u '+' '?'<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-one-plus">+</a>
</pre>
   <p>In this production,
	no whitespace can occur between any of the tokens.</p>
   <p>The <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-8">&lt;urange&gt;</a> production represents a range of one or more contiguous unicode code points
	as a <var>start value</var> and an <var>end value</var>,
	which are non-negative integers.
	To interpret the production above into a range,
	execute the following steps in order:</p>
   <ol>
    <li data-md="">
     <p>Skipping the first <span class="css">u</span> token,
concatenate the representations of all the tokens in the production together
(or, in the case of <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-15">&lt;dimension-token&gt;</a>s,
the representation followed by the unit).
Let this be <var>text</var>.</p>
    </li><li data-md="">
     <p>If the first character of <var>text</var> is U+002B PLUS SIGN,
consume it.
Otherwise,
this is an invalid <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-9">&lt;urange&gt;</a>,
and this algorithm must exit.</p>
    </li><li data-md="">
     <p>Consume as many <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#hex-digit" id="ref-for-hex-digit-7">hex digits</a> from <var>text</var> as possible.
then consume as many U+003F QUESTION MARK (?) <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-83">code points</a> as possible.
If zero <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-84">code points</a> were consumed,
or more than six <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-85">code points</a> were consumed,
this is an invalid <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-10">&lt;urange&gt;</a>,
and this algorithm must exit.</p>
     <p>If any U+003F QUESTION MARK (?) <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-86">code points</a> were consumed, then:</p>
     <ol>
      <li data-md="">
       <p>If there are any <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-87">code points</a> left in <var>text</var>,
this is an invalid <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-11">&lt;urange&gt;</a>,
and this algorithm must exit.</p>
      </li><li data-md="">
       <p>Interpret the consumed <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-88">code points</a> as a hexadecimal number,
with the U+003F QUESTION MARK (?) <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-89">code points</a> replaced by U+0030 DIGIT ZERO (0) <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-90">code points</a>.
This is the <var>start value</var>.</p>
      </li><li data-md="">
       <p>Interpret the consumed <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-91">code points</a> as a hexadecimal number again,
with the U+003F QUESTION MARK (?) <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-92">code points</a> replaced by U+0046 LATIN CAPITAL LETTER F (F) <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-93">code points</a>.
This is the <var>end value</var>.</p>
      </li><li data-md="">
       <p>Exit this algorithm.</p>
     </li></ol>
     <p>Otherwise, interpret the consumed <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-94">code points</a> as a hexadecimal number.
This is the <var>start value</var>.</p>
    </li><li data-md="">
     <p>If there are no <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-95">code points</a> left in <var>text</var>,
The <var>end value</var> is the same as the <var>start value</var>.
Exit this algorithm.</p>
    </li><li data-md="">
     <p>If the next <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-96">code point</a> in <var>text</var> is U+002D HYPHEN-MINUS (-),
consume it.
Otherwise,
this is an invalid <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-12">&lt;urange&gt;</a>,
and this algorithm must exit.</p>
    </li><li data-md="">
     <p>Consume as many <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#hex-digit" id="ref-for-hex-digit-8">hex digits</a> as possible from <var>text</var>.</p>
     <p>If zero <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#hex-digit" id="ref-for-hex-digit-9">hex digits</a> were consumed,
or more than 6 <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#hex-digit" id="ref-for-hex-digit-10">hex digits</a> were consumed,
this is an invalid <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-13">&lt;urange&gt;</a>,
and this algorithm must exit.
If there are any <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-97">code points</a> left in <var>text</var>,
this is an invalid <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-14">&lt;urange&gt;</a>,
and this algorithm must exit.</p>
    </li><li data-md="">
     <p>Interpret the consumed <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-98">code points</a> as a hexadecimal number.
This is the <var>end value</var>.</p>
   </li></ol>
   <p>To determine what codepoints the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-15">&lt;urange&gt;</a> represents:</p>
   <ol>
    <li data-md="">
     <p>If <var>end value</var> is greater than the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#maximum-allowed-code-point" id="ref-for-maximum-allowed-code-point-2">maximum allowed code point</a>,
the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-16">&lt;urange&gt;</a> is invalid and a syntax error.</p>
    </li><li data-md="">
     <p>If <var>start value</var> is greater than <var>end value</var>,
the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-17">&lt;urange&gt;</a> is invalid and a syntax error.</p>
    </li><li data-md="">
     <p>Otherwise, the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-18">&lt;urange&gt;</a> represents a contiguous range of codepoints from <var>start value</var> to <var>end value</var>, inclusive.</p>
   </li></ol>
   <p class="note" role="note">Note: The syntax of <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-19">&lt;urange&gt;</a> is intentionally fairly wide;
	its patterns capture every possible token sequence
	that the informal syntax can generate.
	However, it requires no whitespace between its constituent tokens,
	which renders it fairly safe to use in practice.
	Even grammars which have a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-20">&lt;urange&gt;</a> followed by a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#number-value">&lt;number&gt;</a> or <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-dimension">&lt;dimension&gt;</a> (which might appear to be ambiguous
	if an author specifies the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-21">&lt;urange&gt;</a> with the ''u <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#number-value">&lt;number&gt;</a>'' clause)
	are actually quite safe,
	as an author would have to intentionally separate the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-22">&lt;urange&gt;</a> and the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#number-value">&lt;number&gt;</a>/<a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-dimension">&lt;dimension&gt;</a> with a comment rather than whitespace
	for it to be ambiguous.
	Thus, while it’s <em>possible</em> for authors to write things that are parsed in confusing ways,
	the actual code they’d have to write to cause the confusion is, itself, confusing and rare.</p>
   <h2 class="heading settled" data-level="8" id="rule-defs"><span class="secno">8. </span><span class="content"> Defining Grammars for Rules and Other Values</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#rule-defs"></a></h2>
   <p>The <a href="https://www.w3.org/TR/css3-values/">Values</a> spec defines how to specify a grammar for properties.
	This section does the same, but for rules.</p>
   <p>Just like in property grammars,
	the notation <code>&lt;foo&gt;</code> refers to the "foo" grammar term,
	assumed to be defined elsewhere.
	Substituting the <code>&lt;foo&gt;</code> for its definition results in a semantically identical grammar.</p>
   <p>Several types of tokens are written literally, without quotes:</p>
   <ul>
    <li><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-15">&lt;ident-token&gt;</a>s (such as <code>auto</code>, <code>disc</code>, etc), which are simply written as their value. 
    </li><li><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token" id="ref-for-typedef-at-keyword-token-9">&lt;at-keyword-token&gt;</a>s, which are written as an @ character followed by the token’s value, like <code>@media</code>. 
    </li><li><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token" id="ref-for-typedef-function-token-10">&lt;function-token&gt;</a>s, which are written as the function name followed by a ( character, like <code>translate(</code>. 
    </li><li>The <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-colon-token" id="ref-for-typedef-colon-token-3">&lt;colon-token&gt;</a> (written as <code>:</code>), <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-comma-token" id="ref-for-typedef-comma-token-5">&lt;comma-token&gt;</a> (written as <code>,</code>), <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-semicolon-token" id="ref-for-typedef-semicolon-token-7">&lt;semicolon-token&gt;</a> (written as <code>;</code>), <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-paren" id="ref-for-tokendef-open-paren-6">&lt;(-token&gt;</a>, <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-paren" id="ref-for-tokendef-close-paren-4">&lt;)-token&gt;</a>, <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-curly" id="ref-for-tokendef-open-curly-11">&lt;{-token&gt;</a>, and <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-curly" id="ref-for-tokendef-close-curly-4">&lt;}-token&gt;</a>s. 
   </li></ul>
   <p>Tokens match if their value is an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> match
	for the value defined in the grammar.</p>
   <p class="note" role="note"> Although it is possible, with <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#escape-codepoint" id="ref-for-escape-codepoint-2">escaping</a>,
		to construct an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-16">&lt;ident-token&gt;</a> whose value ends with <code>(</code> or  starts with <code>@</code>,
		such a tokens is not a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token" id="ref-for-typedef-function-token-11">&lt;function-token&gt;</a> or an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token" id="ref-for-typedef-at-keyword-token-10">&lt;at-keyword-token&gt;</a> and does not match corresponding grammar definitions. </p>
   <p><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-16">&lt;delim-token&gt;</a>s are written with their value enclosed in single quotes.
	For example, a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-17">&lt;delim-token&gt;</a> containing the "+" <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-99">code point</a> is written as <code>'+'</code>.
	Similarly, the <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-square" id="ref-for-tokendef-open-square-7">&lt;[-token&gt;</a> and <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-square" id="ref-for-tokendef-close-square-4">&lt;]-token&gt;</a>s must be written in single quotes,
	as they’re used by the syntax of the grammar itself to group clauses. <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-12">&lt;whitespace-token&gt;</a> is never indicated in the grammar; <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-13">&lt;whitespace-token&gt;</a>s are allowed before, after, and between any two tokens,
	unless explicitly specified otherwise in prose definitions.
	(For example, if the prelude of a rule is a selector,
	whitespace is significant.)</p>
   <p>When defining a function or a block,
	the ending token must be specified in the grammar,
	but if it’s not present in the eventual token stream,
	it still matches.</p>
   <div class="example" id="example-a6f9a4ce">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-a6f9a4ce"></a> For example, the syntax of the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-transforms-1/#funcdef-transform-translatex">translateX()</a> function is: 
<pre>translateX( <a class="production" data-link-type="type">&lt;translation-value&gt;</a> )</pre>
    <p>However, the stylesheet may end with the function unclosed, like:</p>
<pre>.foo { transform: translate(50px</pre>
    <p>The CSS parser parses this as a style rule containing one declaration,
		whose value is a function named "translate".
		This matches the above grammar,
		even though the ending token didn’t appear in the token stream,
		because by the time the parser is finished,
		the presence of the ending token is no longer possible to determine;
		all you have is the fact that there’s a block and a function.</p>
   </div>
   <h3 class="heading settled" data-level="8.1" id="declaration-rule-list"><span class="secno">8.1. </span><span class="content"> Defining Block Contents: the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list" id="ref-for-typedef-declaration-list-1">&lt;declaration-list&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-rule-list" id="ref-for-typedef-rule-list-1">&lt;rule-list&gt;</a>, and <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-stylesheet" id="ref-for-typedef-stylesheet-1">&lt;stylesheet&gt;</a> productions</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#declaration-rule-list"></a></h3>
   <p>The CSS parser is agnostic as to the contents of blocks,
	such as those that come at the end of some at-rules.
	Defining the generic grammar of the blocks in terms of tokens is non-trivial,
	but there are dedicated and unambiguous algorithms defined for parsing this.</p>
   <p>The <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-declaration-list">&lt;declaration-list&gt;</dfn> production represents a list of declarations.
	It may only be used in grammars as the sole value in a block,
	and represents that the contents of the block must be parsed using the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-list-of-declarations" id="ref-for-consume-a-list-of-declarations-2">consume a list of declarations</a> algorithm.</p>
   <p>Similarly, the <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-rule-list">&lt;rule-list&gt;</dfn> production represents a list of rules,
	and may only be used in grammars as the sole value in a block.
	It represents that the contents of the block must be parsed using the <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#consume-a-list-of-rules" id="ref-for-consume-a-list-of-rules-3">consume a list of rules</a> algorithm.</p>
   <p>Finally, the <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-stylesheet">&lt;stylesheet&gt;</dfn> production represents a list of rules.
	It is identical to <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-rule-list" id="ref-for-typedef-rule-list-2">&lt;rule-list&gt;</a>,
	except that blocks using it default to accepting all rules
	that aren’t otherwise limited to a particular context.</p>
   <div class="example" id="example-459bdf34">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-459bdf34"></a> For example, the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-fonts-3/#at-font-face-rule">@font-face</a> rule is defined to have an empty prelude,
		and to contain a list of declarations.
		This is expressed with the following grammar: 
<pre>@font-face { <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list" id="ref-for-typedef-declaration-list-2">&lt;declaration-list&gt;</a> }</pre>
    <p>This is a complete and sufficient definition of the rule’s grammar.</p>
    <p>For another example, <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-animations-1/#at-ruledef-keyframes">@keyframes</a> rules are more complex,
		interpreting their prelude as a name and containing keyframes rules in their block
		Their grammar is:</p>
<pre>@keyframes <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-animations-1/#typedef-keyframes-name">&lt;keyframes-name&gt;</a> { <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-rule-list" id="ref-for-typedef-rule-list-3">&lt;rule-list&gt;</a> }</pre>
   </div>
   <p>For rules that use <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list" id="ref-for-typedef-declaration-list-3">&lt;declaration-list&gt;</a>,
	the spec for the rule must define which properties, descriptors, and/or at-rules are valid inside the rule;
	this may be as simple as saying "The @foo rule accepts the properties/descriptors defined in this specification/section.",
	and extension specs may simply say "The @foo rule additionally accepts the following properties/descriptors.".
	Any declarations or at-rules found inside the block that are not defined as valid
	must be removed from the rule’s value.</p>
   <p>Within a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list" id="ref-for-typedef-declaration-list-4">&lt;declaration-list&gt;</a>, <code>!important</code> is automatically invalid on any descriptors.
	If the rule accepts properties,
	the spec for the rule must define whether the properties interact with the cascade,
	and with what specificity.
	If they don’t interact with the cascade,
	properties containing <code>!important</code> are automatically invalid;
	otherwise using <code>!important</code> is valid and has its usual effect on the cascade origin of the property.</p>
   <div class="example" id="example-7d1288b7"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-7d1288b7"></a> For example, the grammar for <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-fonts-3/#at-font-face-rule">@font-face</a> in the previous example must,
		in addition to what is written there,
		define that the allowed declarations are the descriptors defined in the Fonts spec. </div>
   <p>For rules that use <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-rule-list" id="ref-for-typedef-rule-list-4">&lt;rule-list&gt;</a>,
	the spec for the rule must define what types of rules are valid inside the rule,
	same as <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list" id="ref-for-typedef-declaration-list-5">&lt;declaration-list&gt;</a>,
	and unrecognized rules must similarly be removed from the rule’s value.</p>
   <div class="example" id="example-1159f91d">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-1159f91d"></a> For example, the grammar for <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-animations-1/#at-ruledef-keyframes">@keyframes</a> in the previous example must,
		in addition to what is written there,
		define that the only allowed rules are <a class="production css" data-link-type="type">&lt;keyframe-rule&gt;</a>s,
		which are defined as: 
<pre><a class="production" data-link-type="type">&lt;keyframe-rule&gt;</a> = <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-animations-1/#typedef-keyframe-selector">&lt;keyframe-selector&gt;</a> { <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list" id="ref-for-typedef-declaration-list-6">&lt;declaration-list&gt;</a> }</pre>
    <p>Keyframe rules, then,
		must further define that they accept as declarations all animatable CSS properties,
		plus the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-animations-1/#propdef-animation-timing-function">animation-timing-function</a> property,
		but that they do not interact with the cascade.</p>
   </div>
   <p>For rules that use <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-stylesheet" id="ref-for-typedef-stylesheet-2">&lt;stylesheet&gt;</a>,
	all rules are allowed by default,
	but the spec for the rule may define what types of rules are <em>invalid</em> inside the rule.</p>
   <div class="example" id="example-5c74fe2f">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-5c74fe2f"></a> For example, the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-conditional-3/#at-ruledef-media">@media</a> rule accepts anything that can be placed in a stylesheet,
		except more <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-conditional-3/#at-ruledef-media">@media</a> rules.
		As such, its grammar is: 
<pre>@media <a class="production" data-link-type="type" href="https://drafts.csswg.org/mediaqueries-4/#typedef-media-query-list">&lt;media-query-list&gt;</a> { <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-stylesheet" id="ref-for-typedef-stylesheet-3">&lt;stylesheet&gt;</a> }</pre>
    <p>It additionally defines a restriction that the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-stylesheet" id="ref-for-typedef-stylesheet-4">&lt;stylesheet&gt;</a> can not contain <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-conditional-3/#at-ruledef-media">@media</a> rules,
		which causes them to be dropped from the outer rule’s value if they appear.</p>
   </div>
   <h3 class="heading settled" data-level="8.2" id="any-value"><span class="secno">8.2. </span><span class="content"> Defining Arbitrary Contents: the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-value" id="ref-for-typedef-declaration-value-1">&lt;declaration-value&gt;</a> and <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-any-value" id="ref-for-typedef-any-value-1">&lt;any-value&gt;</a> productions</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#any-value"></a></h3>
   <p>In some grammars,
	it is useful to accept any reasonable input in the grammar,
	and do more specific error-handling on the contents manually
	(rather than simply invalidating the construct,
	as grammar mismatches tend to do).</p>
   <p>For example, <a data-link-type="dfn" href="https://drafts.csswg.org/css-variables-1/#custom-property">custom properties</a> allow any reasonable value,
	as they can contain arbitrary pieces of other CSS properties,
	or be used for things that aren’t part of existing CSS at all.
	For another example, the <a class="production css" data-link-type="type" href="https://drafts.csswg.org/mediaqueries-4/#typedef-general-enclosed">&lt;general-enclosed&gt;</a> production in Media Queries
	defines the bounds of what future syntax MQs will allow,
	and uses special logic to deal with "unknown" values.</p>
   <p>To aid in this, two additional productions are defined:</p>
   <p>The <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-declaration-value">&lt;declaration-value&gt;</dfn> production matches <em>any</em> sequence of one or more tokens,
	so long as the sequence does not contain <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-string-token" id="ref-for-typedef-bad-string-token-4">&lt;bad-string-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-url-token" id="ref-for-typedef-bad-url-token-9">&lt;bad-url-token&gt;</a>,
	unmatched <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-paren" id="ref-for-tokendef-close-paren-5">&lt;)-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-square" id="ref-for-tokendef-close-square-5">&lt;]-token&gt;</a>, or <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-curly" id="ref-for-tokendef-close-curly-5">&lt;}-token&gt;</a>,
	or top-level <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-semicolon-token" id="ref-for-typedef-semicolon-token-8">&lt;semicolon-token&gt;</a> tokens or <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-18">&lt;delim-token&gt;</a> tokens with a value of "!".
	It represents the entirety of what a valid declaration can have as its value.</p>
   <p>The <dfn class="dfn-paneled css" data-dfn-type="type" data-export="" id="typedef-any-value">&lt;any-value&gt;</dfn> production is identical to <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-value" id="ref-for-typedef-declaration-value-2">&lt;declaration-value&gt;</a>,
	but also allows top-level <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-semicolon-token" id="ref-for-typedef-semicolon-token-9">&lt;semicolon-token&gt;</a> tokens
	and <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-19">&lt;delim-token&gt;</a> tokens with a value of "!".
	It represents the entirety of what valid CSS can be in any context.</p>
   <h2 class="heading settled" data-level="9" id="css-stylesheets"><span class="secno">9. </span><span class="content"> CSS stylesheets</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#css-stylesheets"></a></h2>
   <p>To <dfn data-dfn-type="dfn" data-noexport="" id="parse-a-css-stylesheet">parse a CSS stylesheet<a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#parse-a-css-stylesheet"></a></dfn>,
	first <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-stylesheet" id="ref-for-parse-a-stylesheet-4">parse a stylesheet</a>.
	Interpret all of the resulting top-level <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#qualified-rule" id="ref-for-qualified-rule-6">qualified rules</a> as <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#style-rule" id="ref-for-style-rule-3">style rules</a>, defined below.</p>
   <p>If any style rule is <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#css-invalid" id="ref-for-css-invalid-1">invalid</a>,
	or any at-rule is not recognized or is invalid according to its grammar or context,
	it’s a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-error" id="ref-for-parse-error-18">parse error</a>.
	Discard that rule.</p>
   <h3 class="heading settled" data-level="9.1" id="style-rules"><span class="secno">9.1. </span><span class="content"> Style rules</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#style-rules"></a></h3>
   <p>A <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="style-rule">style rule</dfn> is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#qualified-rule" id="ref-for-qualified-rule-7">qualified rule</a> that associates a <a href="https://drafts.csswg.org/selectors4/#selector-list">selector list</a> <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-select">[SELECT]</a> with a list of property declarations.
	They are also called <a href="https://www.w3.org/TR/CSS21/syndata.html#rule-sets">rule sets</a> in <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-css21">[CSS21]</a>.
	CSS Cascading and Inheritance <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-css3cascade">[CSS3CASCADE]</a> defines how the declarations inside of style rules participate in the cascade.</p>
   <p>The prelude of the qualified rule is <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-something-according-to-a-css-grammar" id="ref-for-parse-something-according-to-a-css-grammar-1">parsed</a> as a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/selectors-4/#typedef-selector-list">&lt;selector-list&gt;</a>.
	If this returns failure,
	the entire style rule is <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#css-invalid" id="ref-for-css-invalid-2">invalid</a>.</p>
   <p>The content of the qualified rule’s block is parsed as a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-list-of-declarations" id="ref-for-parse-a-list-of-declarations-4">list of declarations</a>.
	Unless defined otherwise by another specification or a future level of this specification,
	at-rules in that list are <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#css-invalid" id="ref-for-css-invalid-3">invalid</a> and must be ignored.
	Declaration for an unknown CSS property
	or whose value does not match the syntax defined by the property are <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#css-invalid" id="ref-for-css-invalid-4">invalid</a> and must be ignored.
	The validity of the style rule’s contents have no effect on the validity of the style rule itself.
	Unless otherwise specified, property names are <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a>.</p>
   <p class="note" role="note">Note: The names of Custom Properties <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-css-variables">[CSS-VARIABLES]</a> are case-sensitive.</p>
   <p><a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#qualified-rule" id="ref-for-qualified-rule-8">Qualified rules</a> at the top-level of a CSS stylesheet are style rules.
	Qualified rules in other contexts may or may not be style rules,
	as defined by the context.</p>
   <p class="example" id="example-b2a4522b"><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-b2a4522b"></a> For example, qualified rules inside <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-conditional-3/#at-ruledef-media">@media</a> rules <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-css3-conditional">[CSS3-CONDITIONAL]</a> are style rules,
		but qualified rules inside <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-animations-1/#at-ruledef-keyframes">@keyframes</a> rules are not <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-css3-animations">[CSS3-ANIMATIONS]</a>. </p>
   <h3 class="heading settled" data-level="9.2" id="charset-rule"><span class="secno">9.2. </span><span class="content"> The <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-syntax-3/#at-ruledef-charset" id="ref-for-at-ruledef-charset-3">@charset</a> Rule</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#charset-rule"></a></h3>
   <p>The algorithm used to <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding" id="ref-for-determine-the-fallback-encoding-1">determine the fallback encoding</a> for a stylesheet
	looks for a specific byte sequence as the very first few bytes in the file,
	which has the syntactic form of an <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-14">at-rule</a> named "@charset".</p>
   <p>However, there is no actual <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#at-rule" id="ref-for-at-rule-15">at-rule</a> named <dfn class="dfn-paneled css" data-dfn-type="at-rule" data-export="" id="at-ruledef-charset">@charset</dfn>.
	When a stylesheet is actually parsed,
	any occurrences of an <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-syntax-3/#at-ruledef-charset" id="ref-for-at-ruledef-charset-4">@charset</a> rule must be treated as an unrecognized rule,
	and thus dropped as invalid when the stylesheet is grammar-checked.</p>
   <p class="note" role="note">Note: The algorithm to <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#parse-a-stylesheet" id="ref-for-parse-a-stylesheet-5">parse a stylesheet</a> explicitly drops the first <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-syntax-3/#at-ruledef-charset" id="ref-for-at-ruledef-charset-5">@charset</a> rule from the document,
	before the stylesheet is grammar-checked,
	so valid rules that must appear first in the stylesheet,
	such as <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-cascade-4/#at-ruledef-import">@import</a>,
	can still be preceded by an (invalid) <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-syntax-3/#at-ruledef-charset" id="ref-for-at-ruledef-charset-6">@charset</a> rule
	without making themselves invalid.</p>
   <p class="note" role="note">Note: In CSS 2.1, <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-syntax-3/#at-ruledef-charset" id="ref-for-at-ruledef-charset-7">@charset</a> was a valid rule.
	Some legacy specs may still refer to a <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-syntax-3/#at-ruledef-charset" id="ref-for-at-ruledef-charset-8">@charset</a> rule,
	and explicitly talk about its presence in the stylesheet.</p>
   <h2 class="heading settled" data-level="10" id="serialization"><span class="secno">10. </span><span class="content"> Serialization</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#serialization"></a></h2>
   <p>The tokenizer described in this specification does not produce tokens for comments,
	or otherwise preserve them in any way.
	Implementations may preserve the contents of comments and their location in the token stream.
	If they do, this preserved information must have no effect on the parsing step.</p>
   <p>This specification does not define how to serialize CSS in general,
	leaving that task to the CSSOM and individual feature specifications.
	In particular, the serialization of comments and whitespace is not defined.</p>
   <p>The only requirement for serialization is that it must "round-trip" with parsing,
	that is, parsing the stylesheet must produce the same data structures as
	parsing, serializing, and parsing again,
	except for consecutive <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-14">&lt;whitespace-token&gt;</a>s,
	which may be collapsed into a single token.</p>
   <p class="note" role="note">Note: This exception can exist because
	CSS grammars always interpret any amount of whitespace as identical to a single space.</p>
   <div class="note" id="serialization-tables" role="note">
    <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#serialization-tables"></a> To satisfy this requirement: 
    <ul>
     <li> A <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-20">&lt;delim-token&gt;</a> containing U+005C REVERSE SOLIDUS (\)
				must be serialized as U+005C REVERSE SOLIDUS
				followed by a <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#newline" id="ref-for-newline-6">newline</a>.
				(The tokenizer only ever emits such a token followed by a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token" id="ref-for-typedef-whitespace-token-15">&lt;whitespace-token&gt;</a> that starts with a newline.) 
     </li><li> A <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-hash-token" id="ref-for-typedef-hash-token-8">&lt;hash-token&gt;</a> with the "unrestricted" type flag may not need
				as much escaping as the same token with the "id" type flag. 
     </li><li> The unit of a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-16">&lt;dimension-token&gt;</a> may need escaping
				to disambiguate with scientific notation. 
     </li><li>
       For any consecutive pair of tokens,
				if the first token shows up in the row headings of either of the following two tables,
				and the second token shows up in the column headings,
				and there’s a ✗ in the cell denoted by the intersection of the chosen row and column,
				the pair of tokens must be serialized with a comment between them. 
      <p>If the tokenizer preserves comments,
				the preserved comment should be used;
				otherwise, an empty comment (<code>/**/</code>) must be inserted.
				(Preserved comments may be reinserted even if the following tables don’t require a comment between two tokens.)</p>
      <p>Single characters in the row and column headings represent a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-21">&lt;delim-token&gt;</a> with that value,
				except for "<code>(</code>",
				which represents a <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-paren" id="ref-for-tokendef-open-paren-7">(-token</a>.</p>
    </li></ul>
    <table class="data">
     <tbody>
      <tr>
       <td>
       </td><th>ident 
       </th><th>function 
       </th><th>url 
       </th><th>bad url 
       </th><th>- 
       </th><th>number 
       </th><th>percentage 
       </th><th>dimension 
       </th><th>CDC 
       </th><th>( 
       </th><th>? 
      </th></tr><tr>
       <th>ident 
       </th><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗ 
       </td><td>
      </td></tr><tr>
       <th>at-keyword 
       </th><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>
       </td><td>
      </td></tr><tr>
       <th>hash 
       </th><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>
       </td><td>
      </td></tr><tr>
       <th>dimension 
       </th><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>
       </td><td>
      </td></tr><tr>
       <th># 
       </th><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>
       </td><td>
       </td><td>
      </td></tr><tr>
       <th>- 
       </th><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>
       </td><td>
       </td><td>
      </td></tr><tr>
       <th>number 
       </th><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>
       </td><td>
       </td><td>
      </td></tr><tr>
       <th>@ 
       </th><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>
       </td><td>
       </td><td>
       </td><td>
       </td><td>
       </td><td>
      </td></tr><tr>
       <th>. 
       </th><td>
       </td><td>
       </td><td>
       </td><td>
       </td><td>
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>
       </td><td>
       </td><td>
      </td></tr><tr>
       <th>+ 
       </th><td>
       </td><td>
       </td><td>
       </td><td>
       </td><td>
       </td><td>✗
       </td><td>✗
       </td><td>✗
       </td><td>
       </td><td>
       </td><td>
    </td></tr></tbody></table>
    <table class="data">
     <tbody>
      <tr>
       <td>
       </td><th>=
       </th><th>|
       </th><th>* 
      </th></tr><tr>
       <th>$ 
       </th><td>✗
       </td><td>
       </td><td>
      </td></tr><tr>
       <th>* 
       </th><td>✗
       </td><td>
       </td><td>
      </td></tr><tr>
       <th>^ 
       </th><td>✗
       </td><td>
       </td><td>
      </td></tr><tr>
       <th>~ 
       </th><td>✗
       </td><td>
       </td><td>
      </td></tr><tr>
       <th>| 
       </th><td>✗
       </td><td>✗
       </td><td>
      </td></tr><tr>
       <th>/ 
       </th><td>
       </td><td>
       </td><td>✗ 
    </td></tr></tbody></table>
   </div>
   <h3 class="heading settled" data-level="10.1" id="serializing-anb"><span class="secno">10.1. </span><span class="content"> Serializing <var>&lt;an+b&gt;</var></span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#serializing-anb"></a></h3>
   <p>To <dfn data-dfn-type="dfn" data-export="" id="serialize-an-anb-value">serialize an <var>&lt;an+b&gt;</var> value<a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#serialize-an-anb-value"></a></dfn>,
	let <var>s</var> initially be the empty string:</p>
   <dl>
    <dt><var>A</var> and <var>B</var> are both zero 
    </dt><dd> Append "0" to <var>s</var>. 
    </dd><dt><var>A</var> is zero, <var>B</var> is non-zero 
    </dt><dd> Serialize <var>B</var> and append it to <var>s</var>. 
    </dd><dt><var>A</var> is non-zero, <var>B</var> is zero 
    </dt><dd> Serialize <var>A</var> and append it to <var>s</var>.
			Append "n" to <var>s</var>. 
    </dd><dt><var>A</var> and <var>B</var> are both non-zero 
    </dt><dd> Serialize <var>A</var> and append it to <var>s</var>.
			Append "n" to <var>s</var>.
			If <var>B</var> is positive,
			append "+" to <var>s</var> Serialize <var>B</var> and append it to <var>s</var>. 
   </dd></dl>
   <p>Return <var>s</var>.</p>
   <h2 class="heading settled" data-level="11" id="priv-sec"><span class="secno">11. </span><span class="content"> Privacy and Security Considerations</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#priv-sec"></a></h2>
   <p>This specification introduces no new privacy concerns.</p>
   <p>This specification improves security, in that CSS parsing is now unambiguously defined for all inputs.</p>
   <p>Insofar as old parsers, such as whitelists/filters, parse differently from this specification,
	they are somewhat insecure,
	but the previous parsing specification left a lot of ambiguous corner cases which browsers interpreted differently,
	so those filters were potentially insecure already,
	and this specification does not worsen the situation.</p>
   <h2 class="heading settled" data-level="12" id="changes"><span class="secno">12. </span><span class="content"> Changes</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#changes"></a></h2>
   <p><em>This section is non-normative.</em></p>
   <h3 class="heading settled" data-level="12.1" id="changes-CR-20140220"><span class="secno">12.1. </span><span class="content"> Changes from the 20 February 2014 Candidate Recommendation</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#changes-CR-20140220"></a></h3>
   <p>The following substantive changes were made:</p>
   <ul>
    <li data-md="">
     <p>Fixed a bug in the "Consume a URL token" algorithm,
where it didn’t consume the quote character starting a string before attempting to consume the string.</p>
    </li><li data-md="">
     <p>Fixed a bug in several of the parser algorithms
related to the current/next input token and things getting consumed early/late.</p>
    </li><li data-md="">
     <p>Fix several bugs in the tokenization and parsing algorithms.</p>
    </li><li data-md="">
     <p>Change the definition of ident-like tokens to allow "--" to start an ident.</p>
   </li></ul>
   <p>The following editorial changes were made:</p>
   <ul>
    <li data-md="">
     <p>The "Consume a string token" algorithm was changed to allow calling it without specifying an explicit ending token,
so that it uses the current input token instead.
The three call-sites of the algorithm were changed to use that form.</p>
    </li><li data-md="">
     <p>Minor editorial restructuring of algorithms.</p>
   </li></ul>
   <h3 class="heading settled" data-level="12.2" id="changes-WD-20131105"><span class="secno">12.2. </span><span class="content"> Changes from the 5 November 2013 Last Call Working Draft</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#changes-WD-20131105"></a></h3>
   <ul>
    <li> The <a href="https://drafts.csswg.org/css-syntax-3/#serialization">Serialization</a> section has been rewritten
			to make only the "round-trip" requirement normative,
			and move the details of how to achieve it into a note.
			Some corner cases in these details have been fixed. 
    </li><li> <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-encoding">[ENCODING]</a> has been added to the list of normative references.
			It was already referenced in normative text before,
			just not listed as such. 
    </li><li>
      In the algorithm to <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding" id="ref-for-determine-the-fallback-encoding-2">determine the fallback encoding</a> of a stylesheet,
			limit the <code>@charset</code> byte sequence to 1024 bytes.
			This aligns with what HTML does for <code>&lt;meta charset&gt;</code> and makes sure the size of the sequence is bounded.
			This only makes a difference with leading or trailing whitespace
			in the encoding label: 
<pre>@charset "   <em>(lots of whitespace)</em>   utf-8";</pre>
   </li></ul>
   <h3 class="heading settled" data-level="12.3" id="changes-WD-20130919"><span class="secno">12.3. </span><span class="content"> Changes from the 19 September 2013 Working Draft</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#changes-WD-20130919"></a></h3>
   <ul>
    <li> The concept of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#environment-encoding" id="ref-for-environment-encoding-4">environment encoding</a> was added.
			The behavior does not change,
			but some of the definitions should be moved to the relevant specs. 
   </li></ul>
   <h3 class="heading settled" data-level="12.4" id="changes-css21"><span class="secno">12.4. </span><span class="content"> Changes from CSS 2.1 and Selectors Level 3</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#changes-css21"></a></h3>
   <p class="note" role="note">Note: The point of this spec is to match reality;
	changes from CSS2.1 are nearly always because CSS 2.1 specified something that doesn’t match actual browser behavior,
	or left something unspecified.
	If some detail doesn’t match browsers,
	please let me know
	as it’s almost certainly unintentional.</p>
   <p>Changes in decoding from a byte stream:</p>
   <ul>
    <li> Only detect <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-syntax-3/#at-ruledef-charset" id="ref-for-at-ruledef-charset-9">@charset</a> rules in ASCII-compatible byte patterns. 
    </li><li> Ignore <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-syntax-3/#at-ruledef-charset" id="ref-for-at-ruledef-charset-10">@charset</a> rules that specify an ASCII-incompatible encoding,
			as that would cause the rule itself to not decode properly. 
    </li><li> Refer to <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-encoding">[ENCODING]</a> rather than the IANA registery for character encodings. 
   </li></ul>
   <p>Tokenization changes:</p>
   <ul>
    <li> Any U+0000 NULL <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-100">code point</a> in the CSS source is replaced with U+FFFD REPLACEMENT CHARACTER. 
    </li><li> Any hexadecimal escape sequence such as <span class="css">\0</span> that evaluates to zero
			produce U+FFFD REPLACEMENT CHARACTER rather than U+0000 NULL. 
    </li><li> The definition of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#non-ascii-code-point" id="ref-for-non-ascii-code-point-2">non-ASCII code point</a> was changed
			to be consistent with every definition of ASCII.
			This affects <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#code-point" id="ref-for-code-point-101">code points</a> U+0080 to U+009F,
			which are now <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#name-code-point" id="ref-for-name-code-point-3">name code points</a> rather than <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-22">&lt;delim-token&gt;</a>s,
			like the rest of <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#non-ascii-code-point" id="ref-for-non-ascii-code-point-3">non-ASCII code points</a>. 
    </li><li> Tokenization does not emit COMMENT or BAD_COMMENT tokens anymore.
			BAD_COMMENT is now considered the same as a normal token (not an error). <a href="https://drafts.csswg.org/css-syntax-3/#serialization">Serialization</a> is responsible
			for inserting comments as necessary between tokens that need to be separated,
			e.g. two consecutive <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-17">&lt;ident-token&gt;</a>s. 
    </li><li>
      The <a class="production css" data-link-type="type">&lt;unicode-range-token&gt;</a> was removed,
			as it was low value and occasionally actively harmful.
			(<span class="css">u+a { font-weight: bold; }</span> was an invalid selector, for example...) 
     <p>Instead, a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-urange" id="ref-for-typedef-urange-23">&lt;urange&gt;</a> production was added,
			based on token patterns.
			It is technically looser than what 2.1 allowed
			(any number of digits and ? characters),
			but not in any way that should impact its use in practice.</p>
    </li><li> Apply the <a href="https://www.w3.org/TR/CSS21/syndata.html#unexpected-eof">EOF error handling rule</a> in the tokenizer
			and emit normal <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-string-token" id="ref-for-typedef-string-token-9">&lt;string-token&gt;</a> and <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-13">&lt;url-token&gt;</a> rather than BAD_STRING or BAD_URI
			on EOF. 
    </li><li> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-prefix-match-token" id="ref-for-typedef-prefix-match-token-3">&lt;prefix-match-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-suffix-match-token" id="ref-for-typedef-suffix-match-token-3">&lt;suffix-match-token&gt;</a>, and <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-substring-match-token" id="ref-for-typedef-substring-match-token-3">&lt;substring-match-token&gt;</a> have been imported from Selectors 3. 
    </li><li> The BAD_URI token (now <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-url-token" id="ref-for-typedef-bad-url-token-10">&lt;bad-url-token&gt;</a>) is "self-contained".
			In other words, once the tokenizer realizes it’s in a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-url-token" id="ref-for-typedef-bad-url-token-11">&lt;bad-url-token&gt;</a> rather than a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token" id="ref-for-typedef-url-token-14">&lt;url-token&gt;</a>,
			it just seeks forward to look for the closing ),
			ignoring everything else.
			This behavior is simpler than treating it like a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token" id="ref-for-typedef-function-token-12">&lt;function-token&gt;</a> and paying attention to opened blocks and such.
			Only WebKit exhibits this behavior,
			but it doesn’t appear that we’ve gotten any compat bugs from it. 
    </li><li> The <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-comma-token" id="ref-for-typedef-comma-token-6">&lt;comma-token&gt;</a> has been added. 
    </li><li> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token" id="ref-for-typedef-number-token-13">&lt;number-token&gt;</a>, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-percentage-token" id="ref-for-typedef-percentage-token-5">&lt;percentage-token&gt;</a>, and <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-17">&lt;dimension-token&gt;</a> have been changed
			to include the preceding +/- sign as part of their value
			(rather than as a separate <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token" id="ref-for-typedef-delim-token-23">&lt;delim-token&gt;</a> that needs to be manually handled every time the token is mentioned in other specs).
			The only consequence of this is that comments can no longer be inserted between the sign and the number. 
    </li><li> Scientific notation is supported for numbers/percentages/dimensions to match SVG,
			per WG resolution. 
    </li><li> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-column-token" id="ref-for-typedef-column-token-3">&lt;column-token&gt;</a> has been added,
			to keep Selectors parsing in single-token lookahead. 
    </li><li> Hexadecimal escape for <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#surrogate-code-point" id="ref-for-surrogate-code-point-2">surrogate code points</a> now emit a replacement character rather than the surrogate.
			This allows implementations to safely use UTF-16 internally. 
   </li></ul>
   <p>Parsing changes:</p>
   <ul>
    <li> Any list of declarations now also accepts at-rules, like <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-page-3/#at-ruledef-page">@page</a>,
			per WG resolution.
			This makes a difference in error handling
			even if no such at-rules are defined yet:
			an at-rule, valid or not, ends at a {} block without a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-semicolon-token" id="ref-for-typedef-semicolon-token-10">&lt;semicolon-token&gt;</a> and lets the next declaration begin. 
    </li><li>
      The handling of some miscellanous "special" tokens
			(like an unmatched <a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-curly" id="ref-for-tokendef-close-curly-6">&lt;}-token&gt;</a>)
			showing up in various places in the grammar
			has been specified with some reasonable behavior shown by at least one browser.
			Previously, stylesheets with those tokens in those places just didn’t match the stylesheet grammar at all,
			so their handling was totally undefined.
			Specifically: 
     <ul>
      <li> [] blocks, () blocks and functions can now contain {} blocks, <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token" id="ref-for-typedef-at-keyword-token-11">&lt;at-keyword-token&gt;</a>s or <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-semicolon-token" id="ref-for-typedef-semicolon-token-11">&lt;semicolon-token&gt;</a>s 
      </li><li> Qualified rule preludes can now contain semicolons 
      </li><li> Qualified rule and at-rule preludes can now contain <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token" id="ref-for-typedef-at-keyword-token-12">&lt;at-keyword-token&gt;</a>s 
     </li></ul>
   </li></ul>
   <p><var>An+B</var> changes from Selectors Level 3 <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-select">[SELECT]</a>:</p>
   <ul>
    <li>
      The <var>An+B</var> microsyntax has now been formally defined in terms of CSS tokens,
			rather than with a separate tokenizer.
			This has resulted in minor differences: 
     <ul>
      <li> In some cases, minus signs or digits can be escaped
					(when they appear as part of the unit of a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token" id="ref-for-typedef-dimension-token-18">&lt;dimension-token&gt;</a> or <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token" id="ref-for-typedef-ident-token-18">&lt;ident-token&gt;</a>). 
     </li></ul>
   </li></ul>
   <h2 class="no-num heading settled" id="acknowledgments"><span class="content"> Acknowledgments</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#acknowledgments"></a></h2>
   <p>Thanks for feedback and contributions from
	Anne van Kesteren,
	David Baron,
	Henri Sivonen,
	Johannes Koch,
	呂康豪 (Kang-Hao Lu),
	Marc O’Morain,
	Raffaello Giulietti,
	Simon Pieter,
	Tyler Karaszewski,
	and Zack Weinberg.</p>
  </main>
  <h2 class="no-ref no-num heading settled" id="conformance"><span class="content"> Conformance</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#conformance"></a></h2>
  <h3 class="heading settled" id="document-conventions"><span class="content"> Document conventions</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#document-conventions"></a></h3>
  <p>Conformance requirements are expressed with a combination of
	descriptive assertions and RFC 2119 terminology. The key words “MUST”,
	“MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”,
	“RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this
	document are to be interpreted as described in RFC 2119.
	However, for readability, these words do not appear in all uppercase
	letters in this specification. </p>
  <p>All of the text of this specification is normative except sections
	explicitly marked as non-normative, examples, and notes. <a data-link-type="biblio" href="https://drafts.csswg.org/css-syntax-3/#biblio-rfc2119">[RFC2119]</a> </p>
  <p>Examples in this specification are introduced with the words “for example”
	or are set apart from the normative text with <code>class="example"</code>,
	like this: </p>
  <div class="example" id="example-52448c84">
   <a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#example-52448c84"></a> 
   <p>This is an example of an informative example. </p>
  </div>
  <p>Informative notes begin with the word “Note” and are set apart from the
	normative text with <code>class="note"</code>, like this: </p>
  <p class="note" role="note">Note, this is an informative note. </p>
  <p>Advisements are normative sections styled to evoke special attention and are
	set apart from other normative text with <code>&lt;strong class="advisement"&gt;</code>, like
	this: <strong class="advisement"> UAs MUST provide an accessible alternative. </strong> </p>
  <h3 class="heading settled" id="conform-classes"><span class="content"> Conformance classes</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#conform-classes"></a></h3>
  <p>Conformance to this specification
	is defined for three conformance classes: </p>
  <dl>
   <dt>style sheet 
   </dt><dd>A <a href="http://www.w3.org/TR/CSS2/conform.html#style-sheet">CSS
			style sheet</a>. 
   </dd><dt>renderer 
   </dt><dd>A <a href="http://www.w3.org/TR/CSS2/conform.html#user-agent">UA</a> that interprets the semantics of a style sheet and renders
			documents that use them. 
   </dd><dt>authoring tool 
   </dt><dd>A <a href="http://www.w3.org/TR/CSS2/conform.html#user-agent">UA</a> that writes a style sheet. 
  </dd></dl>
  <p>A style sheet is conformant to this specification
	if all of its statements that use syntax defined in this module are valid
	according to the generic CSS grammar and the individual grammars of each
	feature defined in this module. </p>
  <p>A renderer is conformant to this specification
	if, in addition to interpreting the style sheet as defined by the
	appropriate specifications, it supports all the features defined
	by this specification by parsing them correctly
	and rendering the document accordingly. However, the inability of a
	UA to correctly render a document due to limitations of the device
	does not make the UA non-conformant. (For example, a UA is not
	required to render color on a monochrome monitor.) </p>
  <p>An authoring tool is conformant to this specification
	if it writes style sheets that are syntactically correct according to the
	generic CSS grammar and the individual grammars of each feature in
	this module, and meet all other conformance requirements of style sheets
	as described in this module. </p>
  <h3 class="heading settled" id="conform-responsible"><span class="content"> Requirements for Responsible Implementation of CSS</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#conform-responsible"></a></h3>
  <p>The following sections define several conformance requirements
		for implementing CSS responsibly,
		in a way that promotes interoperability in the present and future. </p>
  <h4 class="heading settled" id="conform-partial"><span class="content"> Partial Implementations</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#conform-partial"></a></h4>
  <p>So that authors can exploit the forward-compatible parsing rules to assign fallback values, <strong>CSS renderers <em>must</em> treat as invalid
		(and <a href="http://www.w3.org/TR/CSS2/conform.html#ignore">ignore as appropriate</a>)
		any at-rules, properties, property values, keywords, and other syntactic constructs
		for which they have no usable level of support</strong>.
		In particular, user agents <em>must not</em> selectively ignore
		unsupported property values and honor supported values in a single multi-value property declaration:
		if any value is considered invalid (as unsupported values must be),
		CSS requires that the entire declaration be ignored. </p>
  <h4 class="heading settled" id="conform-future-proofing"><span class="content"> Implementations of Unstable and Proprietary Features</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#conform-future-proofing"></a></h4>
  <p>To avoid clashes with future stable CSS features,
		the CSSWG recommends <a href="http://www.w3.org/TR/CSS/#future-proofing">following best practices</a> for the implementation of <a href="http://www.w3.org/TR/CSS/#unstable">unstable</a> features and <a href="http://www.w3.org/TR/CSS/#proprietary-extension">proprietary extensions</a> to CSS. </p>
  <h4 class="heading settled" id="conform-testing"><span class="content"> Implementations of CR-level Features</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#conform-testing"></a></h4>
  <p>Once a specification reaches the Candidate Recommendation stage,
		implementers should release an <a data-link-type="dfn" href="http://www.w3.org/TR/CSS/#vendor-prefix">unprefixed</a> implementation
		of any CR-level feature they can demonstrate
		to be correctly implemented according to spec,
		and should avoid exposing a prefixed variant of that feature. </p>
  <p>To establish and maintain the interoperability of CSS across
		implementations, the CSS Working Group requests that non-experimental
		CSS renderers submit an implementation report (and, if necessary, the
		testcases used for that implementation report) to the W3C before
		releasing an unprefixed implementation of any CSS features. Testcases
		submitted to W3C are subject to review and correction by the CSS
		Working Group. </p>
  <p>
   Further information on submitting testcases and implementation reports
		can be found from on the CSS Working Group’s website at <a href="http://www.w3.org/Style/CSS/Test/">http://www.w3.org/Style/CSS/Test/</a>.
		Questions should be directed to the <a href="http://lists.w3.org/Archives/Public/public-css-testsuite">public-css-testsuite@w3.org</a> mailing list. 
<script src="./CSS Syntax Module Level 3_files/fixup.js.download"></script>
  </p>
  <h2 class="no-num no-ref heading settled" id="index"><span class="content">Index</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#index"></a></h2>
  <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="content">Terms defined by this specification</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#index-defined-here"></a></h3>
  <ul class="index">
   <li><a href="https://drafts.csswg.org/css-syntax-3/#a">A</a><span>, in §6</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#anb">An+B</a><span>, in §6</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#anb-production">&lt;an+b&gt;</a><span>, in §6.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-any-value">&lt;any-value&gt;</a><span>, in §8.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#check-if-two-code-points-are-a-valid-escape">are a valid escape</a><span>, in §4.3.8</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token">&lt;at-keyword-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#at-rule">at-rule</a><span>, in §5</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#b">B</a><span>, in §6</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-string-token">&lt;bad-string-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-url-token">&lt;bad-url-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-cdc-token">&lt;CDC-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-cdo-token">&lt;CDO-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#at-ruledef-charset">@charset</a><span>, in §9.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-an-identifier">check if three code points would start an identifier</a><span>, in §4.3.9</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-a-number">check if three code points would start a number</a><span>, in §4.3.10</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#check-if-two-code-points-are-a-valid-escape">check if two code points are a valid escape</a><span>, in §4.3.8</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#code-point">code point</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-colon-token">&lt;colon-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-column-token">&lt;column-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-comma-token">&lt;comma-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#component-value">component value</a><span>, in §5</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-component-value">consume a component value</a><span>, in §5.4.6</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-declaration">consume a declaration</a><span>, in §5.4.5</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-function">consume a function</a><span>, in §5.4.8</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-list-of-declarations">consume a list of declarations</a><span>, in §5.4.4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-list-of-rules">consume a list of rules</a><span>, in §5.4.1</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-name">consume a name</a><span>, in §4.3.11</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-an-at-rule">consume an at-rule</a><span>, in §5.4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-an-escaped-code-point">consume an escaped code point</a><span>, in §4.3.7</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-an-ident-like-token">consume an ident-like token</a><span>, in §4.3.4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-number">consume a number</a><span>, in §4.3.12</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-numeric-token">consume a numeric token</a><span>, in §4.3.3</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-qualified-rule">consume a qualified rule</a><span>, in §5.4.3</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-simple-block">consume a simple block</a><span>, in §5.4.7</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-string-token">consume a string token</a><span>, in §4.3.5</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-token">consume a token</a><span>, in §4.3.1</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-url-token">consume a url token</a><span>, in §4.3.6</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-comments">consume comments</a><span>, in §4.3.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-the-next-input-token">consume the next input token</a><span>, in §5.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#consume-the-remnants-of-a-bad-url">consume the remnants of a bad url</a><span>, in §4.3.14</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#convert-a-string-to-a-number">convert a string to a number</a><span>, in §4.3.13</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point">current input code point</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#current-input-token">current input token</a><span>, in §5.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-dash-match-token">&lt;dash-match-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-dashndashdigit-ident">&lt;dashndashdigit-ident&gt;</a><span>, in §6.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#declaration">declaration</a><span>, in §5</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list">&lt;declaration-list&gt;</a><span>, in §8.1</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-value">&lt;declaration-value&gt;</a><span>, in §8.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#decode">decode</a><span>, in §3.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token">&lt;delim-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">determine the fallback encoding</a><span>, in §3.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#digit">digit</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token">&lt;dimension-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ending-token">ending token</a><span>, in §5.4.7</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#environment-encoding">environment encoding</a><span>, in §3.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#eof-code-point">EOF code point</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token">&lt;EOF-token&gt;</a><span>, in §5.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#escape-codepoint">escaping</a><span>, in §2.1</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#function">function</a><span>, in §5</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token">&lt;function-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#get-an-encoding">get an encoding</a><span>, in §3.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-hash-token">&lt;hash-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#hex-digit">hex digit</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#identifier">identifier</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token">&lt;ident-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#css-ignored">ignored</a><span>, in §2.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-include-match-token">&lt;include-match-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-integer">&lt;integer&gt;</a><span>, in §6.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#css-invalid">invalid</a><span>, in §2.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#letter">letter</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#lowercase-letter">lowercase letter</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#maximum-allowed-code-point">maximum allowed code point</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#name-code-point">name code point</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#name-start-code-point">name-start code point</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-ndashdigit-dimension">&lt;ndashdigit-dimension&gt;</a><span>, in §6.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-ndashdigit-ident">&lt;ndashdigit-ident&gt;</a><span>, in §6.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-ndash-dimension">&lt;ndash-dimension&gt;</a><span>, in §6.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-n-dimension">&lt;n-dimension&gt;</a><span>, in §6.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#newline">newline</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point">next input code point</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#next-input-token">next input token</a><span>, in §5.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#non-ascii-code-point">non-ASCII code point</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#non-printable-code-point">non-printable code point</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token">&lt;number-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-comma-separated-list-of-component-values">parse a comma-separated list of component values</a><span>, in §5.3.9</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-component-value">parse a component value</a><span>, in §5.3.7</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-css-stylesheet">parse a CSS stylesheet</a><span>, in §9</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-declaration">parse a declaration</a><span>, in §5.3.5</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-list-of-component-values">parse a list of component values</a><span>, in §5.3.8</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-list-of-declarations">parse a list of declarations</a><span>, in §5.3.6</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-list-of-rules">parse a list of rules</a><span>, in §5.3.3</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-rule">parse a rule</a><span>, in §5.3.4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-stylesheet">parse a stylesheet</a><span>, in §5.3.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-error">parse error</a><span>, in §3</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#parse-something-according-to-a-css-grammar">parse something according to a CSS grammar</a><span>, in §5.3.1</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-percentage-token">&lt;percentage-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-prefix-match-token">&lt;prefix-match-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#preserved-tokens">preserved tokens</a><span>, in §5</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#qualified-rule">qualified rule</a><span>, in §5</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-code-point">reconsume the current input code point</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-token">reconsume the current input token</a><span>, in §5.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-rule-list">&lt;rule-list&gt;</a><span>, in §8.1</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-semicolon-token">&lt;semicolon-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#serialize-an-anb-value">serialize an &lt;an+b&gt; value</a><span>, in §10.1</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-signed-integer">&lt;signed-integer&gt;</a><span>, in §6.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-signless-integer">&lt;signless-integer&gt;</a><span>, in §6.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#simple-block">simple block</a><span>, in §5</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-an-identifier">starts with an identifier</a><span>, in §4.3.9</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-a-number">starts with a number</a><span>, in §4.3.10</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#check-if-two-code-points-are-a-valid-escape">starts with a valid escape</a><span>, in §4.3.8</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-an-identifier">start with an identifier</a><span>, in §4.3.9</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-a-number">start with a number</a><span>, in §4.3.10</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-string-token">&lt;string-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#style-rule">style rule</a><span>, in §9.1</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-stylesheet">&lt;stylesheet&gt;</a><span>, in §8.1</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-substring-match-token">&lt;substring-match-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-suffix-match-token">&lt;suffix-match-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#surrogate-code-point">surrogate code point</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-curly">&lt;{-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-paren">&lt;)-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-curly">&lt;}-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-square">&lt;]-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-paren">&lt;(-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-square">&lt;[-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#top-level-flag">top-level flag</a><span>, in §5.4.1</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#uppercase-letter">uppercase letter</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-urange">&lt;urange&gt;</a><span>, in §7</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token">&lt;url-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#whitespace">whitespace</a><span>, in §4.2</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token">&lt;whitespace-token&gt;</a><span>, in §4</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-an-identifier">would start an identifier</a><span>, in §4.3.9</span>
   </li><li><a href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-a-number">would start a number</a><span>, in §4.3.10</span>
  </li></ul>
  <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span class="content">Terms defined by reference</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#index-defined-elsewhere"></a></h3>
  <ul class="index">
   <li>
    <a data-link-type="biblio">[css-animations-1]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/css-animations-1/#typedef-keyframe-selector">&lt;keyframe-selector&gt;</a>
     </li><li><a href="https://drafts.csswg.org/css-animations-1/#typedef-keyframes-name">&lt;keyframes-name&gt;</a>
     </li><li><a href="https://drafts.csswg.org/css-animations-1/#at-ruledef-keyframes">@keyframes</a>
     </li><li><a href="https://drafts.csswg.org/css-animations-1/#propdef-animation-timing-function">animation-timing-function</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[css-cascade-4]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/css-cascade-4/#at-ruledef-import">@import</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[css-color-3]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/css-color-3/#valuea-def-color">&lt;color&gt;</a>
     </li><li><a href="https://drafts.csswg.org/css-color-3/#color0">color</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[css-color-4]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/css-color-4/#valdef-color-blue">blue</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[css-conditional-3]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/css-conditional-3/#at-ruledef-media">@media</a>
     </li><li><a href="https://drafts.csswg.org/css-conditional-3/#at-ruledef-supports">@supports</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[css-fonts-3]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/css-fonts-3/#at-font-face-rule">@font-face</a>
     </li><li><a href="https://drafts.csswg.org/css-fonts-3/#descdef-unicode-range">unicode-range</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[css-page-3]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/css-page-3/#valdef-page-left">:left</a>
     </li><li><a href="https://drafts.csswg.org/css-page-3/#at-ruledef-page">@page</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[css-text-decor-3]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/css-text-decor-3/#propdef-text-decoration">text-decoration</a>
     </li><li><a href="https://drafts.csswg.org/css-text-decor-3/#valdef-text-decoration-line-underline">underline</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[css-transforms-1]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/css-transforms-1/#funcdef-transform-translatex">translatex()</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[css-values]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/css-values-3/#number-value">&lt;number&gt;</a>
     </li><li><a href="https://drafts.csswg.org/css-values-3/#string-value">&lt;string&gt;</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[css-values]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/css-values-4/#mult-zero-plus">*</a>
     </li><li><a href="https://drafts.csswg.org/css-values-4/#mult-one-plus">+</a>
     </li><li><a href="https://drafts.csswg.org/css-values-4/#typedef-dimension">&lt;dimension&gt;</a>
     </li><li><a href="https://drafts.csswg.org/css-values-4/#mult-opt">?</a>
     </li><li><a href="https://drafts.csswg.org/css-values-4/#funcdef-attr">attr()</a>
     </li><li><a href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[CSS-VARIABLES]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/css-variables-1/#custom-property">custom property</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[HTML]</a> defines the following terms:
    <ul>
     <li><a href="https://html.spec.whatwg.org/multipage/infrastructure.html#ascii-case-insensitive">ascii case-insensitive</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[mediaqueries-4]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/mediaqueries-4/#typedef-general-enclosed">&lt;general-enclosed&gt;</a>
     </li><li><a href="https://drafts.csswg.org/mediaqueries-4/#typedef-media-query-list">&lt;media-query-list&gt;</a>
    </li></ul>
   </li><li>
    <a data-link-type="biblio">[selectors-4]</a> defines the following terms:
    <ul>
     <li><a href="https://drafts.csswg.org/selectors-4/#selectordef-adjacent">+</a>
     </li><li><a href="https://drafts.csswg.org/selectors-4/#nth-child-pseudo">:nth-child()</a>
     </li><li><a href="https://drafts.csswg.org/selectors-4/#typedef-selector-list">&lt;selector-list&gt;</a>
    </li></ul>
  </li></ul>
  <h2 class="no-num no-ref heading settled" id="references"><span class="content">References</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#references"></a></h2>
  <h3 class="no-num no-ref heading settled" id="normative"><span class="content">Normative References</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#normative"></a></h3>
  <dl>
   <dt id="biblio-css-color-3">[CSS-COLOR-3]
   </dt><dd>CSS Color Module Level 3 URL: <a href="https://drafts.csswg.org/css-color-3/">https://drafts.csswg.org/css-color-3/</a>
   </dd><dt id="biblio-css-fonts-3">[CSS-FONTS-3]
   </dt><dd>John Daggett. <a href="http://dev.w3.org/csswg/css-fonts/">CSS Fonts Module Level 3</a>. 3 October 2013. CR. URL: <a href="http://dev.w3.org/csswg/css-fonts/">http://dev.w3.org/csswg/css-fonts/</a>
   </dd><dt id="biblio-css-page-3">[CSS-PAGE-3]
   </dt><dd>CSS Paged Media Module Level 3 URL: <a href="https://drafts.csswg.org/css-page-3/">https://drafts.csswg.org/css-page-3/</a>
   </dd><dt id="biblio-css-values">[CSS-VALUES]
   </dt><dd>Tab Atkins Jr.; Elika Etemad. <a href="http://dev.w3.org/csswg/css-values/">CSS Values and Units Module Level 3</a>. 11 June 2015. CR. URL: <a href="http://dev.w3.org/csswg/css-values/">http://dev.w3.org/csswg/css-values/</a>
   </dd><dt id="biblio-css-variables">[CSS-VARIABLES]
   </dt><dd>Tab Atkins Jr.. <a href="http://dev.w3.org/csswg/css-variables/">CSS Custom Properties for Cascading Variables Module Level 1</a>. 3 December 2015. CR. URL: <a href="http://dev.w3.org/csswg/css-variables/">http://dev.w3.org/csswg/css-variables/</a>
   </dd><dt id="biblio-css21">[CSS21]
   </dt><dd>Bert Bos; et al. <a href="https://www.w3.org/TR/CSS2">Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. REC. URL: <a href="https://www.w3.org/TR/CSS2">https://www.w3.org/TR/CSS2</a>
   </dd><dt id="biblio-css3cascade">[CSS3CASCADE]
   </dt><dd>Elika Etemad; Tab Atkins Jr.. <a href="https://drafts.csswg.org/css-cascade-3/">CSS Cascading and Inheritance Level 3</a>. 19 May 2016. CR. URL: <a href="https://drafts.csswg.org/css-cascade-3/">https://drafts.csswg.org/css-cascade-3/</a>
   </dd><dt id="biblio-encoding">[ENCODING]
   </dt><dd>Anne van Kesteren. <a href="https://encoding.spec.whatwg.org/">Encoding Standard</a>. Living Standard. URL: <a href="https://encoding.spec.whatwg.org/">https://encoding.spec.whatwg.org/</a>
   </dd><dt id="biblio-html">[HTML]
   </dt><dd>Ian Hickson. <a href="https://html.spec.whatwg.org/multipage/">HTML Standard</a>. Living Standard. URL: <a href="https://html.spec.whatwg.org/multipage/">https://html.spec.whatwg.org/multipage/</a>
   </dd><dt id="biblio-mediaqueries-4">[MEDIAQUERIES-4]
   </dt><dd>Florian Rivoal; Tab Atkins Jr.. <a href="https://drafts.csswg.org/mediaqueries-4/">Media Queries Level 4</a>. 6 July 2016. WD. URL: <a href="https://drafts.csswg.org/mediaqueries-4/">https://drafts.csswg.org/mediaqueries-4/</a>
   </dd><dt id="biblio-rfc2119">[RFC2119]
   </dt><dd>S. Bradner. <a href="https://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>. March 1997. Best Current Practice. URL: <a href="https://tools.ietf.org/html/rfc2119">https://tools.ietf.org/html/rfc2119</a>
   </dd><dt id="biblio-select">[SELECT]
   </dt><dd>Tantek Çelik; et al. <a href="https://www.w3.org/TR/css3-selectors/">Selectors Level 3</a>. 29 September 2011. REC. URL: <a href="https://www.w3.org/TR/css3-selectors/">https://www.w3.org/TR/css3-selectors/</a>
   </dd><dt id="biblio-selectors-4">[SELECTORS-4]
   </dt><dd>Selectors Level 4 URL: <a href="https://drafts.csswg.org/selectors-4/">https://drafts.csswg.org/selectors-4/</a>
   </dd><dt id="biblio-unicode">[UNICODE]
   </dt><dd><a href="http://www.unicode.org/versions/latest/">The Unicode Standard</a>. URL: <a href="http://www.unicode.org/versions/latest/">http://www.unicode.org/versions/latest/</a>
  </dd></dl>
  <h3 class="no-num no-ref heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="https://drafts.csswg.org/css-syntax-3/#informative"></a></h3>
  <dl>
   <dt id="biblio-css-animations-1">[CSS-ANIMATIONS-1]
   </dt><dd>CSS Animations Module Level 1 URL: <a href="https://drafts.csswg.org/css-animations-1/">https://drafts.csswg.org/css-animations-1/</a>
   </dd><dt id="biblio-css-cascade-4">[CSS-CASCADE-4]
   </dt><dd>Elika Etemad; Tab Atkins Jr.. <a href="http://dev.w3.org/csswg/css-cascade/">CSS Cascading and Inheritance Level 4</a>. 14 January 2016. CR. URL: <a href="http://dev.w3.org/csswg/css-cascade/">http://dev.w3.org/csswg/css-cascade/</a>
   </dd><dt id="biblio-css-color-4">[CSS-COLOR-4]
   </dt><dd>Tab Atkins Jr.; Chris Lilley. <a href="https://drafts.csswg.org/css-color/">CSS Color Module Level 4</a>. 5 July 2016. WD. URL: <a href="https://drafts.csswg.org/css-color/">https://drafts.csswg.org/css-color/</a>
   </dd><dt id="biblio-css-conditional-3">[CSS-CONDITIONAL-3]
   </dt><dd>CSS Conditional Rules Module Level 3 URL: <a href="https://drafts.csswg.org/css-conditional-3/">https://drafts.csswg.org/css-conditional-3/</a>
   </dd><dt id="biblio-css-text-decor-3">[CSS-TEXT-DECOR-3]
   </dt><dd>Elika Etemad; Koji Ishii. <a href="http://dev.w3.org/csswg/css-text-decor-3/">CSS Text Decoration Module Level 3</a>. 1 August 2013. CR. URL: <a href="http://dev.w3.org/csswg/css-text-decor-3/">http://dev.w3.org/csswg/css-text-decor-3/</a>
   </dd><dt id="biblio-css-transforms-1">[CSS-TRANSFORMS-1]
   </dt><dd>Simon Fraser; et al. <a href="http://dev.w3.org/csswg/css-transforms/">CSS Transforms Module Level 1</a>. 26 November 2013. WD. URL: <a href="http://dev.w3.org/csswg/css-transforms/">http://dev.w3.org/csswg/css-transforms/</a>
   </dd><dt id="biblio-css3-animations">[CSS3-ANIMATIONS]
   </dt><dd>Dean Jackson; et al. <a href="https://www.w3.org/TR/css3-animations/">CSS Animations</a>. 19 February 2013. WD. URL: <a href="https://www.w3.org/TR/css3-animations/">https://www.w3.org/TR/css3-animations/</a>
   </dd><dt id="biblio-css3-conditional">[CSS3-CONDITIONAL]
   </dt><dd>David Baron. <a href="https://www.w3.org/TR/css3-conditional/">CSS Conditional Rules Module Level 3</a>. 4 April 2013. CR. URL: <a href="https://www.w3.org/TR/css3-conditional/">https://www.w3.org/TR/css3-conditional/</a>
   </dd><dt id="biblio-cssom">[CSSOM]
   </dt><dd>Simon Pieters; Glenn Adams. <a href="https://drafts.csswg.org/cssom/">CSS Object Model (CSSOM)</a>. 17 March 2016. WD. URL: <a href="https://drafts.csswg.org/cssom/">https://drafts.csswg.org/cssom/</a>
   </dd><dt id="biblio-mediaq">[MEDIAQ]
   </dt><dd>Florian Rivoal; et al. <a href="https://www.w3.org/TR/css3-mediaqueries/">Media Queries</a>. 19 June 2012. REC. URL: <a href="https://www.w3.org/TR/css3-mediaqueries/">https://www.w3.org/TR/css3-mediaqueries/</a>
  </dd></dl>
  <aside class="dfn-panel" data-for="escape-codepoint">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#escape-codepoint">#escape-codepoint</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-escape-codepoint-1">2. 
Description of CSS’s Syntax</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-escape-codepoint-2">8. 
Defining Grammars for Rules and Other Values</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="css-invalid">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#css-invalid">#css-invalid</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-css-invalid-1">9. 
CSS stylesheets</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-css-invalid-2">9.1. 
Style rules</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-css-invalid-3">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-css-invalid-4">(3)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="parse-error">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#parse-error">#parse-error</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-1">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-2">4.3.2. 
Consume comments</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-3">4.3.5. 
Consume a string token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-4">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-5">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-6">4.3.6. 
Consume a url token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-7">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-8">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-9">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-10">(5)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-11">4.3.7. 
Consume an escaped code point</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-12">5.4.2. 
Consume an at-rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-13">5.4.3. 
Consume a qualified rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-14">5.4.4. 
Consume a list of declarations</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-15">5.4.5. 
Consume a declaration</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-16">5.4.7. 
Consume a simple block</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-17">5.4.8. 
Consume a function</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-error-18">9. 
CSS stylesheets</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="decode">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#decode">#decode</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-decode-1">3.2. 
The input byte stream</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="determine-the-fallback-encoding">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">#determine-the-fallback-encoding</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-determine-the-fallback-encoding-1">9.2. 
The @charset Rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-determine-the-fallback-encoding-2">12.2. 
Changes from the 5 November 2013 Last Call Working Draft</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="get-an-encoding">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#get-an-encoding">#get-an-encoding</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-get-an-encoding-1">3.2. 
The input byte stream</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="environment-encoding">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#environment-encoding">#environment-encoding</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-environment-encoding-1">3.2. 
The input byte stream</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-environment-encoding-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-environment-encoding-3">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-environment-encoding-4">12.3. 
Changes from the 19 September 2013 Working Draft</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-ident-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-ident-token">#typedef-ident-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-1">4. 
Tokenization</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-2">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-3">4.2. 
Definitions</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-4">4.3.4. 
Consume an ident-like token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-5">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-6">4.3.11. 
Consume a name</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-7">5.3.5. 
Parse a declaration</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-8">5.4.4. 
Consume a list of declarations</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-9">5.4.5. 
Consume a declaration</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-10">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-11">6.2. 
The &lt;an+b&gt; type</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-12">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-13">7.1. 
The &lt;urange&gt; type</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-14">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-15">8. 
Defining Grammars for Rules and Other Values</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-16">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-17">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-ident-token-18">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-function-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-function-token">#typedef-function-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-function-token-1">4. 
Tokenization</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-function-token-2">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-function-token-3">4.2. 
Definitions</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-function-token-4">4.3.4. 
Consume an ident-like token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-function-token-5">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-function-token-6">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-function-token-7">5. 
Parsing</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-function-token-8">5.4.6. 
Consume a component value</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-function-token-9">5.4.8. 
Consume a function</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-function-token-10">8. 
Defining Grammars for Rules and Other Values</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-function-token-11">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-function-token-12">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-at-keyword-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-at-keyword-token">#typedef-at-keyword-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-at-keyword-token-1">2.2. 
Error Handling</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-at-keyword-token-2">4. 
Tokenization</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-at-keyword-token-3">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-at-keyword-token-4">4.2. 
Definitions</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-at-keyword-token-5">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-at-keyword-token-6">5.3.4. 
Parse a rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-at-keyword-token-7">5.4.1. 
Consume a list of rules</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-at-keyword-token-8">5.4.4. 
Consume a list of declarations</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-at-keyword-token-9">8. 
Defining Grammars for Rules and Other Values</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-at-keyword-token-10">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-at-keyword-token-11">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-at-keyword-token-12">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-hash-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-hash-token">#typedef-hash-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-hash-token-1">4. 
Tokenization</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-hash-token-2">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-hash-token-3">4.2. 
Definitions</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-hash-token-4">4.3.1. 
Consume a token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-hash-token-5">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-hash-token-6">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-hash-token-7">(4)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-hash-token-8">10. 
Serialization</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-string-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-string-token">#typedef-string-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-string-token-1">4. 
Tokenization</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-string-token-2">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-string-token-3">4.3.5. 
Consume a string token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-string-token-4">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-string-token-5">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-string-token-6">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-string-token-7">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-string-token-8">(6)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-string-token-9">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-bad-string-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-string-token">#typedef-bad-string-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-string-token-1">4.3.5. 
Consume a string token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-string-token-2">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-string-token-3">5. 
Parsing</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-string-token-4">8.2. 
Defining Arbitrary Contents: the &lt;declaration-value&gt; and &lt;any-value&gt; productions</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-url-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-url-token">#typedef-url-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-1">4. 
Tokenization</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-2">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-3">4.3.4. 
Consume an ident-like token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-4">4.3.6. 
Consume a url token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-5">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-6">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-7">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-8">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-9">(6)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-10">(7)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-11">(8)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-12">4.3.14. 
Consume the remnants of a bad url</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-13">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-url-token-14">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-bad-url-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-bad-url-token">#typedef-bad-url-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-url-token-1">4.3.4. 
Consume an ident-like token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-url-token-2">4.3.6. 
Consume a url token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-url-token-3">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-url-token-4">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-url-token-5">(4)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-url-token-6">4.3.14. 
Consume the remnants of a bad url</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-url-token-7">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-url-token-8">5. 
Parsing</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-url-token-9">8.2. 
Defining Arbitrary Contents: the &lt;declaration-value&gt; and &lt;any-value&gt; productions</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-url-token-10">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-bad-url-token-11">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-delim-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-delim-token">#typedef-delim-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-1">4. 
Tokenization</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-2">4.3.1. 
Consume a token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-3">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-4">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-5">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-6">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-7">(6)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-8">(7)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-9">(8)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-10">(9)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-11">(10)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-12">(11)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-13">(12)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-14">(13)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-15">5.4.5. 
Consume a declaration</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-16">8. 
Defining Grammars for Rules and Other Values</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-17">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-18">8.2. 
Defining Arbitrary Contents: the &lt;declaration-value&gt; and &lt;any-value&gt; productions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-19">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-20">10. 
Serialization</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-21">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-22">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-delim-token-23">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-number-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-number-token">#typedef-number-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-number-token-1">4. 
Tokenization</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-number-token-2">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-number-token-3">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-number-token-4">4.3.3. 
Consume a numeric token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-number-token-5">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-number-token-6">6.2. 
The &lt;an+b&gt; type</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-number-token-7">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-number-token-8">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-number-token-9">7.1. 
The &lt;urange&gt; type</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-number-token-10">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-number-token-11">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-number-token-12">(4)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-number-token-13">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-percentage-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-percentage-token">#typedef-percentage-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-percentage-token-1">4. 
Tokenization</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-percentage-token-2">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-percentage-token-3">4.3.3. 
Consume a numeric token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-percentage-token-4">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-percentage-token-5">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-dimension-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-dimension-token">#typedef-dimension-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-1">4. 
Tokenization</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-3">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-4">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-5">4.2. 
Definitions</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-6">4.3.3. 
Consume a numeric token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-7">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-8">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-9">(4)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-10">6.2. 
The &lt;an+b&gt; type</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-11">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-12">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-13">7.1. 
The &lt;urange&gt; type</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-14">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-15">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-16">10. 
Serialization</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-17">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dimension-token-18">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-include-match-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-include-match-token">#typedef-include-match-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-include-match-token-1">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-include-match-token-2">4.3.1. 
Consume a token</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-dash-match-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-dash-match-token">#typedef-dash-match-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dash-match-token-1">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-dash-match-token-2">4.3.1. 
Consume a token</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-prefix-match-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-prefix-match-token">#typedef-prefix-match-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-prefix-match-token-1">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-prefix-match-token-2">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-prefix-match-token-3">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-suffix-match-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-suffix-match-token">#typedef-suffix-match-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-suffix-match-token-1">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-suffix-match-token-2">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-suffix-match-token-3">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-substring-match-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-substring-match-token">#typedef-substring-match-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-substring-match-token-1">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-substring-match-token-2">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-substring-match-token-3">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-column-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-column-token">#typedef-column-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-column-token-1">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-column-token-2">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-column-token-3">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-whitespace-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-whitespace-token">#typedef-whitespace-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-1">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-2">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-3">5.3.4. 
Parse a rule</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-4">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-5">5.3.5. 
Parse a declaration</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-6">5.3.7. 
Parse a component value</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-7">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-8">5.4.1. 
Consume a list of rules</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-9">5.4.4. 
Consume a list of declarations</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-10">5.4.5. 
Consume a declaration</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-11">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-12">8. 
Defining Grammars for Rules and Other Values</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-13">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-14">10. 
Serialization</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-whitespace-token-15">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-cdo-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-cdo-token">#typedef-cdo-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-cdo-token-1">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-cdo-token-2">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-cdo-token-3">5.3. 
Parser Entry Points</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-cdo-token-4">5.4.1. 
Consume a list of rules</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-cdc-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-cdc-token">#typedef-cdc-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-cdc-token-1">4.1. 
Token Railroad Diagrams</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-cdc-token-2">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-cdc-token-3">5.3. 
Parser Entry Points</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-cdc-token-4">5.4.1. 
Consume a list of rules</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-colon-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-colon-token">#typedef-colon-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-colon-token-1">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-colon-token-2">5.4.5. 
Consume a declaration</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-colon-token-3">8. 
Defining Grammars for Rules and Other Values</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-semicolon-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-semicolon-token">#typedef-semicolon-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-semicolon-token-1">2.2. 
Error Handling</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-semicolon-token-2">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-semicolon-token-3">5.4.2. 
Consume an at-rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-semicolon-token-4">5.4.4. 
Consume a list of declarations</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-semicolon-token-5">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-semicolon-token-6">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-semicolon-token-7">8. 
Defining Grammars for Rules and Other Values</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-semicolon-token-8">8.2. 
Defining Arbitrary Contents: the &lt;declaration-value&gt; and &lt;any-value&gt; productions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-semicolon-token-9">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-semicolon-token-10">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-semicolon-token-11">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-comma-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-comma-token">#typedef-comma-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-comma-token-1">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-comma-token-2">5.3.9. 
Parse a comma-separated list of component values</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-comma-token-3">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-comma-token-4">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-comma-token-5">8. 
Defining Grammars for Rules and Other Values</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-comma-token-6">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="tokendef-open-square">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-square">#tokendef-open-square</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-square-1">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-square-2">5. 
Parsing</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-square-3">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-square-4">5.4.6. 
Consume a component value</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-square-5">5.4.7. 
Consume a simple block</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-square-6">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-square-7">8. 
Defining Grammars for Rules and Other Values</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="tokendef-close-square">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-square">#tokendef-close-square</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-square-1">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-square-2">5. 
Parsing</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-square-3">5.4.7. 
Consume a simple block</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-square-4">8. 
Defining Grammars for Rules and Other Values</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-square-5">8.2. 
Defining Arbitrary Contents: the &lt;declaration-value&gt; and &lt;any-value&gt; productions</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="tokendef-open-paren">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-paren">#tokendef-open-paren</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-paren-1">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-paren-2">5. 
Parsing</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-paren-3">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-paren-4">5.4.6. 
Consume a component value</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-paren-5">5.4.7. 
Consume a simple block</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-paren-6">8. 
Defining Grammars for Rules and Other Values</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-paren-7">10. 
Serialization</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="tokendef-close-paren">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-paren">#tokendef-close-paren</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-paren-1">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-paren-2">5. 
Parsing</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-paren-3">5.4.8. 
Consume a function</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-paren-4">8. 
Defining Grammars for Rules and Other Values</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-paren-5">8.2. 
Defining Arbitrary Contents: the &lt;declaration-value&gt; and &lt;any-value&gt; productions</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="tokendef-open-curly">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-open-curly">#tokendef-open-curly</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-curly-1">2.2. 
Error Handling</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-curly-2">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-curly-3">5. 
Parsing</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-curly-4">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-curly-5">5.4.2. 
Consume an at-rule</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-curly-6">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-curly-7">5.4.3. 
Consume a qualified rule</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-curly-8">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-curly-9">5.4.6. 
Consume a component value</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-curly-10">5.4.7. 
Consume a simple block</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-open-curly-11">8. 
Defining Grammars for Rules and Other Values</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="tokendef-close-curly">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#tokendef-close-curly">#tokendef-close-curly</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-curly-1">2.2. 
Error Handling</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-curly-2">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-curly-3">5. 
Parsing</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-curly-4">8. 
Defining Grammars for Rules and Other Values</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-curly-5">8.2. 
Defining Arbitrary Contents: the &lt;declaration-value&gt; and &lt;any-value&gt; productions</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-tokendef-close-curly-6">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="code-point">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#code-point">#code-point</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-1">1. 
Introduction</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-2">2. 
Description of CSS’s Syntax</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-3">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-4">2.1. 
Escaping</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-5">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-6">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-7">(4)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-8">3.1. 
Overview of the Parsing Model</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-9">3.2. 
The input byte stream</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-10">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-11">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-12">3.3. 
Preprocessing the input stream</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-13">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-14">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-15">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-16">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-17">(6)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-18">4. 
Tokenization</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-19">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-20">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-21">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-22">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-23">(6)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-24">(7)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-25">4.2. 
Definitions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-26">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-27">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-28">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-29">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-30">(6)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-31">(7)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-32">(8)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-33">(9)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-34">(10)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-35">(11)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-36">(12)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-37">(13)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-38">4.3. 
Tokenizer Algorithms</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-39">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-40">4.3.2. 
Consume comments</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-41">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-42">4.3.3. 
Consume a numeric token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-43">4.3.4. 
Consume an ident-like token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-44">4.3.5. 
Consume a string token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-45">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-46">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-47">4.3.6. 
Consume a url token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-48">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-49">4.3.7. 
Consume an escaped code point</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-50">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-51">4.3.8. 
Check if two code points are a valid escape</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-52">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-53">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-54">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-55">(5)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-56">4.3.9. 
Check if three code points would start an identifier</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-57">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-58">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-59">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-60">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-61">(6)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-62">(7)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-63">4.3.10. 
Check if three code points would start a number</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-64">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-65">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-66">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-67">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-68">(6)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-69">(7)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-70">(8)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-71">4.3.11. 
Consume a name</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-72">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-73">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-74">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-75">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-76">(6)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-77">4.3.12. 
Consume a number</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-78">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-79">4.3.14. 
Consume the remnants of a bad url</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-80">5.3. 
Parser Entry Points</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-81">6.2. 
The &lt;an+b&gt; type</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-82">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-83">7.1. 
The &lt;urange&gt; type</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-84">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-85">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-86">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-87">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-88">(6)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-89">(7)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-90">(8)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-91">(9)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-92">(10)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-93">(11)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-94">(12)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-95">(13)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-96">(14)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-97">(15)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-98">(16)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-99">8. 
Defining Grammars for Rules and Other Values</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-100">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-code-point-101">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="next-input-code-point">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#next-input-code-point">#next-input-code-point</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-1">4.2. 
Definitions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-2">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-3">4.3.1. 
Consume a token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-4">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-5">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-6">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-7">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-8">(6)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-9">(7)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-10">(8)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-11">(9)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-12">(10)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-13">(11)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-14">(12)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-15">(13)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-16">4.3.2. 
Consume comments</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-17">4.3.3. 
Consume a numeric token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-18">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-19">4.3.4. 
Consume an ident-like token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-20">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-21">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-22">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-23">(5)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-24">4.3.5. 
Consume a string token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-25">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-26">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-27">4.3.6. 
Consume a url token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-28">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-29">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-30">4.3.7. 
Consume an escaped code point</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-31">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-32">4.3.8. 
Check if two code points are a valid escape</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-33">4.3.9. 
Check if three code points would start an identifier</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-34">4.3.10. 
Check if three code points would start a number</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-35">4.3.11. 
Consume a name</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-36">4.3.12. 
Consume a number</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-37">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-38">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-39">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-40">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-41">(6)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-code-point-42">4.3.14. 
Consume the remnants of a bad url</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="current-input-code-point">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#current-input-code-point">#current-input-code-point</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-1">4.2. 
Definitions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-2">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-3">4.3.1. 
Consume a token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-4">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-5">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-6">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-7">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-8">(6)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-9">(7)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-10">(8)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-11">(9)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-12">(10)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-13">(11)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-14">(12)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-15">(13)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-16">4.3.5. 
Consume a string token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-17">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-18">4.3.6. 
Consume a url token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-19">4.3.7. 
Consume an escaped code point</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-20">4.3.8. 
Check if two code points are a valid escape</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-21">4.3.9. 
Check if three code points would start an identifier</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-code-point-22">4.3.10. 
Check if three code points would start a number</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="reconsume-the-current-input-code-point">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-code-point">#reconsume-the-current-input-code-point</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-code-point-1">4.3.1. 
Consume a token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-code-point-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-code-point-3">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-code-point-4">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-code-point-5">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-code-point-6">(6)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-code-point-7">(7)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-code-point-8">4.3.5. 
Consume a string token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-code-point-9">4.3.11. 
Consume a name</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="digit">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#digit">#digit</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-1">4.2. 
Definitions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-2">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-3">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-4">4.3.10. 
Check if three code points would start a number</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-5">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-6">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-7">(4)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-8">4.3.12. 
Consume a number</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-9">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-10">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-11">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-12">(5)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-13">4.3.13. 
Convert a string to a number</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-14">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-15">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-16">6.2. 
The &lt;an+b&gt; type</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-17">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-18">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-digit-19">(4)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="hex-digit">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#hex-digit">#hex-digit</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-hex-digit-1">2.1. 
Escaping</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-hex-digit-2">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-hex-digit-3">4.3.7. 
Consume an escaped code point</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-hex-digit-4">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-hex-digit-5">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-hex-digit-6">7. 
The Unicode-Range microsyntax</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-hex-digit-7">7.1. 
The &lt;urange&gt; type</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-hex-digit-8">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-hex-digit-9">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-hex-digit-10">(4)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="uppercase-letter">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#uppercase-letter">#uppercase-letter</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-uppercase-letter-1">4.2. 
Definitions</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="lowercase-letter">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#lowercase-letter">#lowercase-letter</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-lowercase-letter-1">4.2. 
Definitions</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="letter">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#letter">#letter</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-letter-1">4.2. 
Definitions</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="non-ascii-code-point">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#non-ascii-code-point">#non-ascii-code-point</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-non-ascii-code-point-1">4.2. 
Definitions</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-non-ascii-code-point-2">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-non-ascii-code-point-3">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="name-start-code-point">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#name-start-code-point">#name-start-code-point</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-name-start-code-point-1">4.2. 
Definitions</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-name-start-code-point-2">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-name-start-code-point-3">4.3.9. 
Check if three code points would start an identifier</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-name-start-code-point-4">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="name-code-point">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#name-code-point">#name-code-point</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-name-code-point-1">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-name-code-point-2">4.3.11. 
Consume a name</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-name-code-point-3">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="non-printable-code-point">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#non-printable-code-point">#non-printable-code-point</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-non-printable-code-point-1">4.3.6. 
Consume a url token</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="newline">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#newline">#newline</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-newline-1">2.1. 
Escaping</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-newline-2">4.2. 
Definitions</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-newline-3">4.3.5. 
Consume a string token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-newline-4">4.3.7. 
Consume an escaped code point</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-newline-5">4.3.8. 
Check if two code points are a valid escape</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-newline-6">10. 
Serialization</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="whitespace">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#whitespace">#whitespace</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-whitespace-1">2.1. 
Escaping</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-whitespace-2">4.3.1. 
Consume a token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-whitespace-3">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-whitespace-4">4.3.4. 
Consume an ident-like token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-whitespace-5">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-whitespace-6">4.3.6. 
Consume a url token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-whitespace-7">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-whitespace-8">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-whitespace-9">4.3.7. 
Consume an escaped code point</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="surrogate-code-point">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#surrogate-code-point">#surrogate-code-point</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-surrogate-code-point-1">4.3.7. 
Consume an escaped code point</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-surrogate-code-point-2">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="maximum-allowed-code-point">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#maximum-allowed-code-point">#maximum-allowed-code-point</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-maximum-allowed-code-point-1">4.3.7. 
Consume an escaped code point</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-maximum-allowed-code-point-2">7.1. 
The &lt;urange&gt; type</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="identifier">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#identifier">#identifier</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-identifier-1">2. 
Description of CSS’s Syntax</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-identifier-2">2.1. 
Escaping</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-identifier-3">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-identifier-4">4.3.9. 
Check if three code points would start an identifier</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-a-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-token">#consume-a-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-token-1">4. 
Tokenization</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-token-2">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-comments">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-comments">#consume-comments</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-comments-1">4.3.1. 
Consume a token</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-a-numeric-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-numeric-token">#consume-a-numeric-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-numeric-token-1">4.3.1. 
Consume a token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-numeric-token-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-numeric-token-3">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-numeric-token-4">(4)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-an-ident-like-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-an-ident-like-token">#consume-an-ident-like-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-an-ident-like-token-1">4.3.1. 
Consume a token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-an-ident-like-token-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-an-ident-like-token-3">(3)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-a-string-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-string-token">#consume-a-string-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-string-token-1">4.3.1. 
Consume a token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-string-token-2">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-a-url-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-url-token">#consume-a-url-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-url-token-1">4.3.4. 
Consume an ident-like token</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-an-escaped-code-point">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-an-escaped-code-point">#consume-an-escaped-code-point</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-an-escaped-code-point-1">4.3.5. 
Consume a string token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-an-escaped-code-point-2">4.3.6. 
Consume a url token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-an-escaped-code-point-3">4.3.11. 
Consume a name</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-an-escaped-code-point-4">4.3.14. 
Consume the remnants of a bad url</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="check-if-two-code-points-are-a-valid-escape">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#check-if-two-code-points-are-a-valid-escape">#check-if-two-code-points-are-a-valid-escape</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-two-code-points-are-a-valid-escape-1">4.3.1. 
Consume a token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-two-code-points-are-a-valid-escape-2">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-two-code-points-are-a-valid-escape-3">4.3.5. 
Consume a string token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-two-code-points-are-a-valid-escape-4">4.3.6. 
Consume a url token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-two-code-points-are-a-valid-escape-5">4.3.9. 
Check if three code points would start an identifier</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-two-code-points-are-a-valid-escape-6">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-two-code-points-are-a-valid-escape-7">4.3.11. 
Consume a name</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-two-code-points-are-a-valid-escape-8">4.3.14. 
Consume the remnants of a bad url</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="check-if-three-code-points-would-start-an-identifier">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-an-identifier">#check-if-three-code-points-would-start-an-identifier</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-three-code-points-would-start-an-identifier-1">4.3.1. 
Consume a token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-three-code-points-would-start-an-identifier-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-three-code-points-would-start-an-identifier-3">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-three-code-points-would-start-an-identifier-4">4.3.3. 
Consume a numeric token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-three-code-points-would-start-an-identifier-5">4.3.11. 
Consume a name</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="check-if-three-code-points-would-start-a-number">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-a-number">#check-if-three-code-points-would-start-a-number</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-three-code-points-would-start-a-number-1">4.3.1. 
Consume a token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-three-code-points-would-start-a-number-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-three-code-points-would-start-a-number-3">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-check-if-three-code-points-would-start-a-number-4">4.3.12. 
Consume a number</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-a-name">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-name">#consume-a-name</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-name-1">4.3.1. 
Consume a token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-name-2">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-name-3">4.3.3. 
Consume a numeric token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-name-4">4.3.4. 
Consume an ident-like token</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-a-number">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-number">#consume-a-number</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-number-1">4.3.3. 
Consume a numeric token</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="convert-a-string-to-a-number">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#convert-a-string-to-a-number">#convert-a-string-to-a-number</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-convert-a-string-to-a-number-1">4.3.12. 
Consume a number</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-the-remnants-of-a-bad-url">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-the-remnants-of-a-bad-url">#consume-the-remnants-of-a-bad-url</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-remnants-of-a-bad-url-1">4.3.6. 
Consume a url token</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-remnants-of-a-bad-url-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-remnants-of-a-bad-url-3">(3)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="at-rule">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#at-rule">#at-rule</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-1">2. 
Description of CSS’s Syntax</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-3">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-4">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-5">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-6">(6)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-7">(7)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-8">(8)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-9">(9)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-10">(10)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-11">3.2. 
The input byte stream</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-12">5. 
Parsing</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-13">5.3.2. 
Parse a stylesheet</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-14">9.2. 
The @charset Rule</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-rule-15">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="qualified-rule">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#qualified-rule">#qualified-rule</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-qualified-rule-1">2. 
Description of CSS’s Syntax</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-qualified-rule-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-qualified-rule-3">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-qualified-rule-4">(4)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-qualified-rule-5">5. 
Parsing</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-qualified-rule-6">9. 
CSS stylesheets</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-qualified-rule-7">9.1. 
Style rules</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-qualified-rule-8">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="component-value">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#component-value">#component-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-component-value-1">5.2. 
Definitions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-component-value-2">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="function">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#function">#function</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-function-1">5.4. 
Parser Algorithms</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="simple-block">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#simple-block">#simple-block</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-simple-block-1">5.4. 
Parser Algorithms</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-simple-block-2">5.4.2. 
Consume an at-rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-simple-block-3">5.4.3. 
Consume a qualified rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-simple-block-4">5.4.7. 
Consume a simple block</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="current-input-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#current-input-token">#current-input-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-1">5.2. 
Definitions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-3">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-4">(4)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-5">5.4.2. 
Consume an at-rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-6">5.4.4. 
Consume a list of declarations</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-7">5.4.5. 
Consume a declaration</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-8">5.4.6. 
Consume a component value</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-9">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-10">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-11">5.4.7. 
Consume a simple block</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-12">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-13">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-14">5.4.8. 
Consume a function</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-current-input-token-15">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="next-input-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#next-input-token">#next-input-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-1">5.2. 
Definitions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-3">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-4">(4)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-5">5.3.4. 
Parse a rule</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-6">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-7">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-8">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-9">(5)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-10">5.3.5. 
Parse a declaration</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-11">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-12">5.3.7. 
Parse a component value</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-13">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-14">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-15">(4)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-16">5.4.1. 
Consume a list of rules</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-17">5.4.2. 
Consume an at-rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-18">5.4.3. 
Consume a qualified rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-19">5.4.4. 
Consume a list of declarations</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-20">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-21">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-22">5.4.5. 
Consume a declaration</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-23">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-24">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-25">(4)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-26">5.4.7. 
Consume a simple block</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-next-input-token-27">5.4.8. 
Consume a function</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-eof-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-eof-token">#typedef-eof-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-1">4. 
Tokenization</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-2">4.3.1. 
Consume a token</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-3">5.2. 
Definitions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-4">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-5">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-6">5.3.4. 
Parse a rule</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-7">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-8">5.3.7. 
Parse a component value</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-9">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-10">5.3.8. 
Parse a list of component values</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-11">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-12">5.3.9. 
Parse a comma-separated list of component values</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-13">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-14">5.4. 
Parser Algorithms</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-15">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-16">5.4.1. 
Consume a list of rules</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-17">5.4.2. 
Consume an at-rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-18">5.4.3. 
Consume a qualified rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-19">5.4.4. 
Consume a list of declarations</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-20">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-21">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-22">5.4.5. 
Consume a declaration</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-23">5.4.7. 
Consume a simple block</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-eof-token-24">5.4.8. 
Consume a function</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-the-next-input-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-the-next-input-token">#consume-the-next-input-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-next-input-token-1">5.2. 
Definitions</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-next-input-token-2">5.3.4. 
Parse a rule</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-next-input-token-3">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-next-input-token-4">5.3.5. 
Parse a declaration</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-next-input-token-5">5.3.7. 
Parse a component value</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-next-input-token-6">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-next-input-token-7">5.4.2. 
Consume an at-rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-next-input-token-8">5.4.5. 
Consume a declaration</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-next-input-token-9">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-next-input-token-10">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-the-next-input-token-11">5.4.6. 
Consume a component value</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="reconsume-the-current-input-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#reconsume-the-current-input-token">#reconsume-the-current-input-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-token-1">5.4.1. 
Consume a list of rules</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-token-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-token-3">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-token-4">5.4.2. 
Consume an at-rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-token-5">5.4.3. 
Consume a qualified rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-token-6">5.4.4. 
Consume a list of declarations</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-token-7">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-token-8">5.4.7. 
Consume a simple block</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-reconsume-the-current-input-token-9">5.4.8. 
Consume a function</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="parse-something-according-to-a-css-grammar">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#parse-something-according-to-a-css-grammar">#parse-something-according-to-a-css-grammar</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-something-according-to-a-css-grammar-1">9.1. 
Style rules</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="parse-a-stylesheet">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-stylesheet">#parse-a-stylesheet</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-stylesheet-1">5.3. 
Parser Entry Points</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-stylesheet-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-stylesheet-3">(3)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-stylesheet-4">9. 
CSS stylesheets</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-stylesheet-5">9.2. 
The @charset Rule</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="parse-a-list-of-rules">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-list-of-rules">#parse-a-list-of-rules</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-list-of-rules-1">5.3. 
Parser Entry Points</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="parse-a-rule">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-rule">#parse-a-rule</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-rule-1">5.3. 
Parser Entry Points</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="parse-a-declaration">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-declaration">#parse-a-declaration</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-declaration-1">5.3. 
Parser Entry Points</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="parse-a-list-of-declarations">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-list-of-declarations">#parse-a-list-of-declarations</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-list-of-declarations-1">5. 
Parsing</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-list-of-declarations-2">5.3. 
Parser Entry Points</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-list-of-declarations-3">5.3.5. 
Parse a declaration</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-list-of-declarations-4">9.1. 
Style rules</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="parse-a-component-value">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-component-value">#parse-a-component-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-component-value-1">5.3. 
Parser Entry Points</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="parse-a-list-of-component-values">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#parse-a-list-of-component-values">#parse-a-list-of-component-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-list-of-component-values-1">5.3. 
Parser Entry Points</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-parse-a-list-of-component-values-2">5.3.1. 
Parse something according to a CSS grammar</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-a-list-of-rules">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-list-of-rules">#consume-a-list-of-rules</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-list-of-rules-1">5.3.2. 
Parse a stylesheet</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-list-of-rules-2">5.3.3. 
Parse a list of rules</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-list-of-rules-3">8.1. 
Defining Block Contents: the &lt;declaration-list&gt;, &lt;rule-list&gt;, and &lt;stylesheet&gt; productions</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-an-at-rule">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-an-at-rule">#consume-an-at-rule</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-an-at-rule-1">5.3.4. 
Parse a rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-an-at-rule-2">5.4.1. 
Consume a list of rules</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-an-at-rule-3">5.4.4. 
Consume a list of declarations</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-a-qualified-rule">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-qualified-rule">#consume-a-qualified-rule</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-qualified-rule-1">5.3.4. 
Parse a rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-qualified-rule-2">5.4.1. 
Consume a list of rules</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-qualified-rule-3">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-a-list-of-declarations">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-list-of-declarations">#consume-a-list-of-declarations</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-list-of-declarations-1">5.3.6. 
Parse a list of declarations</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-list-of-declarations-2">8.1. 
Defining Block Contents: the &lt;declaration-list&gt;, &lt;rule-list&gt;, and &lt;stylesheet&gt; productions</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-a-declaration">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-declaration">#consume-a-declaration</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-declaration-1">5.3.5. 
Parse a declaration</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-declaration-2">5.4.4. 
Consume a list of declarations</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-a-component-value">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-component-value">#consume-a-component-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-component-value-1">5.3.7. 
Parse a component value</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-component-value-2">5.3.8. 
Parse a list of component values</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-component-value-3">5.3.9. 
Parse a comma-separated list of component values</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-component-value-4">5.4.2. 
Consume an at-rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-component-value-5">5.4.3. 
Consume a qualified rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-component-value-6">5.4.4. 
Consume a list of declarations</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-component-value-7">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-component-value-8">5.4.5. 
Consume a declaration</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-component-value-9">5.4.7. 
Consume a simple block</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-component-value-10">5.4.8. 
Consume a function</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-a-simple-block">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-simple-block">#consume-a-simple-block</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-simple-block-1">5.4.2. 
Consume an at-rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-simple-block-2">5.4.3. 
Consume a qualified rule</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-simple-block-3">5.4.6. 
Consume a component value</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="ending-token">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#ending-token">#ending-token</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-ending-token-1">5.4.7. 
Consume a simple block</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-ending-token-2">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="consume-a-function">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#consume-a-function">#consume-a-function</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-consume-a-function-1">5.4.6. 
Consume a component value</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-urange">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-urange">#typedef-urange</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-1">7. 
The Unicode-Range microsyntax</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-2">7.1. 
The &lt;urange&gt; type</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-3">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-4">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-5">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-6">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-7">(6)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-8">(7)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-9">(8)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-10">(9)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-11">(10)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-12">(11)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-13">(12)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-14">(13)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-15">(14)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-16">(15)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-17">(16)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-18">(17)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-19">(18)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-20">(19)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-21">(20)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-22">(21)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-urange-23">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-declaration-list">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list">#typedef-declaration-list</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-declaration-list-1">8.1. 
Defining Block Contents: the &lt;declaration-list&gt;, &lt;rule-list&gt;, and &lt;stylesheet&gt; productions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-declaration-list-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-declaration-list-3">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-declaration-list-4">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-declaration-list-5">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-declaration-list-6">(6)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-rule-list">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-rule-list">#typedef-rule-list</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-rule-list-1">8.1. 
Defining Block Contents: the &lt;declaration-list&gt;, &lt;rule-list&gt;, and &lt;stylesheet&gt; productions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-rule-list-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-rule-list-3">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-rule-list-4">(4)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-stylesheet">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-stylesheet">#typedef-stylesheet</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-stylesheet-1">8.1. 
Defining Block Contents: the &lt;declaration-list&gt;, &lt;rule-list&gt;, and &lt;stylesheet&gt; productions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-stylesheet-2">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-stylesheet-3">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-stylesheet-4">(4)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-declaration-value">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-declaration-value">#typedef-declaration-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-declaration-value-1">8.2. 
Defining Arbitrary Contents: the &lt;declaration-value&gt; and &lt;any-value&gt; productions</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-declaration-value-2">(2)</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-any-value">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#typedef-any-value">#typedef-any-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-typedef-any-value-1">8.2. 
Defining Arbitrary Contents: the &lt;declaration-value&gt; and &lt;any-value&gt; productions</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="style-rule">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#style-rule">#style-rule</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-style-rule-1">2. 
Description of CSS’s Syntax</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-style-rule-2">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-style-rule-3">9. 
CSS stylesheets</a>
   </li></ul>
  </aside>
  <aside class="dfn-panel" data-for="at-ruledef-charset">
   <b><a href="https://drafts.csswg.org/css-syntax-3/#at-ruledef-charset">#at-ruledef-charset</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-ruledef-charset-1">3.2. 
The input byte stream</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-ruledef-charset-2">(2)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-ruledef-charset-3">9.2. 
The @charset Rule</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-ruledef-charset-4">(2)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-ruledef-charset-5">(3)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-ruledef-charset-6">(4)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-ruledef-charset-7">(5)</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-ruledef-charset-8">(6)</a>
    </li><li><a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-ruledef-charset-9">12.4. 
Changes from CSS 2.1 and Selectors Level 3</a> <a href="https://drafts.csswg.org/css-syntax-3/#ref-for-at-ruledef-charset-10">(2)</a>
   </li></ul>
  </aside>
<script>/* script-dfn-panel */

        document.body.addEventListener("click", function(e) {
            var queryAll = function(sel) { return [].slice.call(document.querySelectorAll(sel)); }
            // Find the dfn element or panel, if any, that was clicked on.
            var el = e.target;
            var target;
            var hitALink = false;
            while(el.parentElement) {
                if(el.tagName == "A") {
                    // Clicking on a link in a <dfn> shouldn't summon the panel
                    hitALink = true;
                }
                if(el.classList.contains("dfn-paneled")) {
                    target = "dfn";
                    break;
                }
                if(el.classList.contains("dfn-panel")) {
                    target = "dfn-panel";
                    break;
                }
                el = el.parentElement;
            }
            if(target != "dfn-panel") {
                // Turn off any currently "on" or "activated" panels.
                queryAll(".dfn-panel.on, .dfn-panel.activated").forEach(function(el){
                    el.classList.remove("on");
                    el.classList.remove("activated");
                });
            }
            if(target == "dfn" && !hitALink) {
                // open the panel
                var dfnPanel = document.querySelector(".dfn-panel[data-for='" + el.id + "']");
                if(dfnPanel) {
                    console.log(dfnPanel);
                    dfnPanel.classList.add("on");
                    var rect = el.getBoundingClientRect();
                    dfnPanel.style.left = window.scrollX + rect.right + 5 + "px";
                    dfnPanel.style.top = window.scrollY + rect.top + "px";
                    var panelRect = dfnPanel.getBoundingClientRect();
                    var panelWidth = panelRect.right - panelRect.left;
                    if(panelRect.right > document.body.scrollWidth && (rect.left - (panelWidth + 5)) > 0) {
                        // Reposition, because the panel is overflowing
                        dfnPanel.style.left = window.scrollX + rect.left - (panelWidth + 5) + "px";
                    }
                } else {
                    console.log("Couldn't find .dfn-panel[data-for='" + el.id + "']");
                }
            } else if(target == "dfn-panel") {
                // Switch it to "activated" state, which pins it.
                el.classList.add("activated");
                el.style.left = null;
                el.style.top = null;
            }

        });
        </script><a class="link-error" href="https://drafts.csswg.org/bikeshed/css-syntax-3/" id="generator" title="Bikeshed Link Errors"><svg height="24" viewBox="0 0 100 100" width="24"><g stroke="blue" stroke-width="6" fill="none"><path fill="blue" stroke="none" d="M 5 95 L 5 35 L 50 10 L 50 95"></path><path ad="M 1 37 L 54 8"></path><path fill="blue" stroke="none" d="M 1 40 v -6 l 60 -32 v 6 z"></path><circle cx="75" cy="79" r="15"></circle><circle fill="blue" stroke="none" cx="75" cy="79" r="4"></circle><path d="M 75 79 L 65 49 L 55 49"></path><path d="M 67 55 L 48 69"></path></g></svg></a></body></html>